onRelationshipValidationResult method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsCallback.onRelationshipValidationResult', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onRelationshipValidationResult(int,android.net.Uri,boolean,android.os.Bundle)')])
- CustomTabsRelationType? relation,
- WebUri? requestedOrigin,
- bool result
Event fired when a relationship validation result is available.
relation - Relation for which the result is available. Value previously passed to PlatformChromeSafariBrowser.validateRelationship.
requestedOrigin - Origin requested. Value previously passed to PlatformChromeSafariBrowser.validateRelationship.
result - Whether the relation was validated.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - CustomTabsCallback.onRelationshipValidationResult)
Parameters - Officially Supported Platforms/Implementations:
relation: all platformsrequestedOrigin: all platformsresult: all platforms
Use the PlatformChromeSafariBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'CustomTabsCallback.onRelationshipValidationResult',
apiUrl:
'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onRelationshipValidationResult(int,android.net.Uri,boolean,android.os.Bundle)',
),
],
)
void onRelationshipValidationResult(
CustomTabsRelationType? relation,
WebUri? requestedOrigin,
bool result,
) {}