validateRelationship method
- required CustomTabsRelationType relation,
- required WebUri origin,
Requests to validate a relationship between the application and an origin.
See here for documentation about Digital Asset Links. This methods requests the browser to verify a relation with the calling application, to grant the associated rights.
If this method returns true, the validation result will be provided through PlatformChromeSafariBrowserEvents.onRelationshipValidationResult.
Otherwise the request didn't succeed.
relation – Relation to check, must be one of the CustomTabsRelationType constants.
origin – Origin.
extras – Reserved for future use.
Officially Supported Platforms/Implementations:
- Android Chrome Custom Tabs (Official API - CustomTabsSession.validateRelationship)
Parameters - Officially Supported Platforms/Implementations:
relation: all platformsorigin: all platforms
Use the PlatformChromeSafariBrowser.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<bool> validateRelationship({
required CustomTabsRelationType relation,
required WebUri origin,
}) => platform.validateRelationship(relation: relation, origin: origin);