postVisualStateCallback method
- 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
Future<void> postVisualStateCallback({int? requestId}) =>
platform.postVisualStateCallback(requestId: requestId);