onExitFullscreen property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onHideCustomView', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onHideCustomView()'), IOSPlatform(apiName: 'UIWindow.didBecomeHiddenNotification', apiUrl: 'https://developer.apple.com/documentation/uikit/uiwindow/1621617-didbecomehiddennotification'), MacOSPlatform(apiName: 'NSWindow.didExitFullScreenNotification', apiUrl: 'https://developer.apple.com/documentation/appkit/nswindow/1419177-didexitfullscreennotification'), WebPlatform(apiName: 'Document.onfullscreenchange', apiUrl: 'https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenchange_event'), WindowsPlatform(apiName: 'ICoreWebView2.add_ContainsFullScreenElementChanged', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#add_containsfullscreenelementchanged'), LinuxPlatform(apiName: 'WebKitWebView::leave-fullscreen', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.leave-fullscreen.html')])
void Function(T controller)? onExitFullscreen
final

Event fired when the current page has exited full screen mode.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(
      apiName: 'WebChromeClient.onHideCustomView',
      apiUrl:
          'https://developer.android.com/reference/android/webkit/WebChromeClient#onHideCustomView()',
    ),
    IOSPlatform(
      apiName: 'UIWindow.didBecomeHiddenNotification',
      apiUrl:
          'https://developer.apple.com/documentation/uikit/uiwindow/1621617-didbecomehiddennotification',
    ),
    MacOSPlatform(
      apiName: 'NSWindow.didExitFullScreenNotification',
      apiUrl:
          'https://developer.apple.com/documentation/appkit/nswindow/1419177-didexitfullscreennotification',
    ),
    WebPlatform(
      apiName: 'Document.onfullscreenchange',
      apiUrl:
          'https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenchange_event',
    ),
    WindowsPlatform(
      apiName: 'ICoreWebView2.add_ContainsFullScreenElementChanged',
      apiUrl:
          'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2210.55#add_containsfullscreenelementchanged',
    ),
    LinuxPlatform(
      apiName: 'WebKitWebView::leave-fullscreen',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.leave-fullscreen.html',
    ),
  ],
)
final void Function(T controller)? onExitFullscreen;