onWebViewNavigation property

  1. @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].')])
void Function(T controller, WebViewNavigationEvent event)? onWebViewNavigation
final

Android NavigationListener lifecycle and performance events.

Officially Supported Platforms/Implementations:

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;