androidOnJsBeforeUnload property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform()])
  2. @Deprecated('Use onJsBeforeUnload instead')
FutureOr<JsBeforeUnloadResponse?> Function(T controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)? androidOnJsBeforeUnload
final

Use onJsBeforeUnload instead.

Officially Supported Platforms/Implementations:

  • Android WebView

Parameters - Officially Supported Platforms/Implementations:

  • jsBeforeUnloadRequest: all platforms

Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(platforms: [AndroidPlatform()])
@Deprecated('Use onJsBeforeUnload instead')
final FutureOr<JsBeforeUnloadResponse?> Function(
  T controller,
  JsBeforeUnloadRequest jsBeforeUnloadRequest,
)?
androidOnJsBeforeUnload;