onVisualStateReady property

  1. @SupportedPlatforms(platforms: [AndroidPlatform(available: '23', apiName: 'WebView.postVisualStateCallback', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)')])
void Function(T controller, int progress)? onVisualStateReady
final

Event fired when the Android WebView is ready to be drawn.

This is posted automatically after a finished page load and also after an explicit PlatformInAppWebViewController.postVisualStateCallback call.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • requestId: all platforms

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      available: '23',
      apiName: 'WebView.postVisualStateCallback',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)',
    ),
  ],
)
final void Function(T controller, int requestId)? onVisualStateReady;