onNavigationEvent method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'CustomTabsCallback.onNavigationEvent', apiUrl: 'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onNavigationEvent(int,android.os.Bundle)')])
Event fired when a navigation event happens.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - CustomTabsCallback.onNavigationEvent)
Parameters - Officially Supported Platforms/Implementations:
navigationEvent: all platforms
Use the PlatformChromeSafariBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'CustomTabsCallback.onNavigationEvent',
apiUrl:
'https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsCallback#onNavigationEvent(int,android.os.Bundle)',
),
],
)
void onNavigationEvent(CustomTabsNavigationEventType? navigationEvent) {}