Package com.vaadin.flow.component.page
Enum Class FullscreenSessionState
- All Implemented Interfaces:
Serializable,Comparable<FullscreenSessionState>,Constable
Lifecycle state of a single
FullscreenSession.
Each call to Page.requestFullscreen() or
Component.requestFullscreen() starts a new session in
PENDING and ends in one of the four terminal states:
REJECTED if the browser refused the request, EXITED_BY_CODE
if server code initiated the exit, or EXITED_BY_USER if the browser
exited fullscreen for any other reason (Escape key, browser close button,
navigation, etc.). The intermediate ACTIVE state means the browser
accepted the request and fullscreen is currently in effect for this session.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe browser has accepted the request and the page or component is currently fullscreen.Server code ended fullscreen by callingPage.exitFullscreen(),Component.exitFullscreen(), orFullscreenSession.exit().The user ended fullscreen — Escape key, the browser's exit button, navigation, or any other browser-side cause that was not a server-sidePage.exitFullscreen()orComponent.exitFullscreen()orFullscreenSession.exit()call.The request has been sent to the browser but no outcome has been reported yet.The browser refused the request. -
Method Summary
Modifier and TypeMethodDescriptionstatic FullscreenSessionStateReturns the enum constant of this class with the specified name.static FullscreenSessionState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PENDING
-
ACTIVE
The browser has accepted the request and the page or component is currently fullscreen. Sessions in this state transition toEXITED_BY_CODEorEXITED_BY_USERwhen fullscreen ends. -
REJECTED
The browser refused the request. Common causes are missing transient user activation (the request was not made from a direct user gesture), an iframe permissions policy that blocks fullscreen, or the document being detached. AWARNis logged with the browser-provided error message. Terminal state. -
EXITED_BY_USER
The user ended fullscreen — Escape key, the browser's exit button, navigation, or any other browser-side cause that was not a server-sidePage.exitFullscreen()orComponent.exitFullscreen()orFullscreenSession.exit()call. Terminal state. -
EXITED_BY_CODE
Server code ended fullscreen by callingPage.exitFullscreen(),Component.exitFullscreen(), orFullscreenSession.exit(). Also reached when a newrequestFullscreen()supersedes the session before the previous one exited. Terminal state.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-