Package com.vaadin.flow.component.fullscreen
@NullMarked
package com.vaadin.flow.component.fullscreen
Server-side access to the browser's Fullscreen API.
Use
Fullscreen.onClick(component) to make a button (or other clickable
component) enter fullscreen, and
Fullscreen.stateSignal() to
observe the current
fullscreen
state. Fullscreen.exit() leaves
fullscreen again.
Entering fullscreen goes through onClick rather than an ordinary
server-side click listener because the browser only honours a fullscreen
request while it is handling a genuine user gesture, which is no longer valid
by the time a server round trip completes.
-
ClassDescriptionEntry point for the browser Fullscreen API.Fluent surface returned from
Fullscreen.onClick(T), used to declare what a click should make fullscreen.The fullscreen state of the browser page, as reported byFullscreen.stateSignal().