postVisualStateCallback method
- @SupportedPlatforms(platforms: [AndroidPlatform(apiName: 'WebView.postVisualStateCallback', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)', available: '23')])
- int? requestId,
Requests a callback when this WebView is ready to be drawn.
When omitted, Android also posts a visual-state callback after each finished page load and fires PlatformWebViewCreationParams.onVisualStateReady.
Officially Supported Platforms/Implementations:
- Android WebView 23+ (Official API - WebView.postVisualStateCallback)
Parameters - Officially Supported Platforms/Implementations:
requestId: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.postVisualStateCallback',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#postVisualStateCallback(long,%20android.webkit.WebView.VisualStateCallback)',
available: '23',
),
],
)
Future<void> postVisualStateCallback({int? requestId}) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.postVisualStateCallback.name} is not implemented on the current platform',
);
}