目录

Class (FullScreenExitHandler)

FullScreenExitHandler is a full-screen exit handler class provided by the Web component, used to respond to the event of a web page exiting full-screen mode. This class notifies developers through the exitFullScreen method that the Web component has exited the full-screen state, helping developers handle full-screen state changes in a timely manner, adjust the application UI layout, or execute corresponding logic. For sample code, see onFullScreenEnter.

  • This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.

  • This class is supported since API version 9.

  • The sample effect is subject to the actual device.

constructor9+

constructor()

Constructs a FullScreenExitHandler API.

System capability: SystemCapability.Web.Webview.Core

exitFullScreen9+

exitFullScreen(): void

Exits full screen mode.

System capability: SystemCapability.Web.Webview.Core