Skip to main content
Use this event to programmatically control the fullscreen state of your embedded Omni session and build custom fullscreen controls in the parent application. This event is useful when:
  • You want to build your own fullscreen button in the parent application
  • You need to keep Omni’s presentation state in sync with native browser fullscreen
  • You want to provide a consistent fullscreen experience across your application
The postMessage protocol does not carry user activation, so sending this event alone only applies Omni’s CSS overlay presentation. To enable true browser fullscreen, call iframeElement.requestFullscreen() in your own click handler first, then post fullscreen:set to sync Omni’s presentation styling.

Properties

boolean
required
The fullscreen presentation state to apply. Accepts one of:
  • true - Activates fullscreen presentation mode
  • false - Deactivates fullscreen presentation mode

Example

This example demonstrates a parent-controlled fullscreen implementation that coordinates native browser fullscreen with Omni’s presentation state: