androidOnJsBeforeUnload method
- @SupportedPlatforms.new(platforms: [AndroidPlatform()])
- @Deprecated('Use onJsBeforeUnload instead')
- JsBeforeUnloadRequest jsBeforeUnloadRequest
Use onJsBeforeUnload instead.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
jsBeforeUnloadRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(platforms: [AndroidPlatform()])
@Deprecated('Use onJsBeforeUnload instead')
FutureOr<JsBeforeUnloadResponse?>? androidOnJsBeforeUnload(
JsBeforeUnloadRequest jsBeforeUnloadRequest,
) {
return null;
}