androidOnJsBeforeUnload method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform()])
  2. @Deprecated('Use onJsBeforeUnload instead')
FutureOr<JsBeforeUnloadResponse?>? androidOnJsBeforeUnload(
  1. 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;
}