onEnterFullscreen property
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onShowCustomView', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onShowCustomView(android.view.View,%20android.webkit.WebChromeClient.CustomViewCallback)'), IOSPlatform(apiName: 'UIWindow.didBecomeVisibleNotification', apiUrl: 'https://developer.apple.com/documentation/uikit/uiwindow/1621621-didbecomevisiblenotification'), MacOSPlatform(apiName: 'NSWindow.didEnterFullScreenNotification', apiUrl: 'https://developer.apple.com/documentation/appkit/nswindow/1419651-didenterfullscreennotification'), 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::enter-fullscreen', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.enter-fullscreen.html')])
final
Event fired when the current page has entered full screen mode.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onShowCustomView)
- iOS WKWebView (Official API - UIWindow.didBecomeVisibleNotification)
- macOS WKWebView (Official API - NSWindow.didEnterFullScreenNotification)
- Web <iframe> but requires same origin (Official API - Document.onfullscreenchange)
- Windows WebView2 (Official API - ICoreWebView2.add_ContainsFullScreenElementChanged)
- Linux WPE WebKit (Official API - WebKitWebView::enter-fullscreen)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebChromeClient.onShowCustomView',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebChromeClient#onShowCustomView(android.view.View,%20android.webkit.WebChromeClient.CustomViewCallback)',
),
IOSPlatform(
apiName: 'UIWindow.didBecomeVisibleNotification',
apiUrl:
'https://developer.apple.com/documentation/uikit/uiwindow/1621621-didbecomevisiblenotification',
),
MacOSPlatform(
apiName: 'NSWindow.didEnterFullScreenNotification',
apiUrl:
'https://developer.apple.com/documentation/appkit/nswindow/1419651-didenterfullscreennotification',
),
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::enter-fullscreen',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/signal.WebView.enter-fullscreen.html',
),
],
)
final void Function(T controller)? onEnterFullscreen;