onRelationshipValidationResult method

  1. @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)')])
void onRelationshipValidationResult(
  1. CustomTabsRelationType? relation,
  2. WebUri? requestedOrigin,
  3. 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:

Parameters - Officially Supported Platforms/Implementations:

  • relation: all platforms
  • requestedOrigin: all platforms
  • result: 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,
) {}