onVisualStateReady property
- @SupportedPlatforms(platforms: [AndroidPlatform(available: '23', apiName: 'WebView.postVisualStateCallback', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)')])
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:
- Android WebView 23+ (Official API - WebView.postVisualStateCallback)
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;