onWebViewNavigation property
- @SupportedPlatforms(platforms: [AndroidPlatform(apiName: 'WebViewCompat.addNavigationListener', apiUrl: 'https://developer.android.com/reference/androidx/webkit/WebViewCompat#addNavigationListener(android.webkit.WebView,java.util.concurrent.Executor,androidx.webkit.NavigationListener)', note: 'Requires [WebViewFeature.NAVIGATION_LISTENER].')])
final
Android NavigationListener lifecycle and performance events.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.addNavigationListener):
- Requires WebViewFeature.NAVIGATION_LISTENER.
Parameters - Officially Supported Platforms/Implementations:
event: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebViewCompat.addNavigationListener',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/WebViewCompat#addNavigationListener(android.webkit.WebView,java.util.concurrent.Executor,androidx.webkit.NavigationListener)',
note: 'Requires [WebViewFeature.NAVIGATION_LISTENER].',
),
],
)
final void Function(T controller, WebViewNavigationEvent event)?
onWebViewNavigation;