onWindowFocus property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(apiName: 'Window.onfocus', apiUrl: 'https://developer.mozilla.org/en-US/docs/Web/API/Window/focus_event')])
void Function(T controller)? onWindowFocus
final

Event fired when the JavaScript window object of the WebView has received focus. This is the result of the focus JavaScript event applied to the window object.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    MacOSPlatform(),
    WebPlatform(
      apiName: 'Window.onfocus',
      apiUrl:
          'https://developer.mozilla.org/en-US/docs/Web/API/Window/focus_event',
    ),
  ],
)
final void Function(T controller)? onWindowFocus;