Enum Class FullscreenState
- All Implemented Interfaces:
Serializable,Comparable<FullscreenState>,Constable
The fullscreen state of the browser page, as reported by
Fullscreen.stateSignal().
There are four observable states: the browser cannot go fullscreen at all
(UNSUPPORTED), it can but the page is not currently fullscreen
(NOT_FULLSCREEN), the page is fullscreen (FULLSCREEN), and
an UNKNOWN sentinel used before the browser has reported its first
value.
- Since:
- 25.2
- 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 page is currently displayed in fullscreen.The browser can go fullscreen and the page is currently not fullscreen.The browser has not reported a value yet.The browser cannot go fullscreen ? either it does not support fullscreen, or the page is not permitted to enter it (for example when embedded in an iframe without the required permission). -
Method Summary
Modifier and TypeMethodDescriptionstatic FullscreenStateReturns the enum constant of this class with the specified name.static FullscreenState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The browser has not reported a value yet. This is only the signal's initial value before the first client round-trip completes; in practice a real value is in place before any application code runs, and the signal never returns toUNKNOWNonce it has a real value. Treat it as "not known yet" if you ever observe it. -
UNSUPPORTED
The browser cannot go fullscreen ? either it does not support fullscreen, or the page is not permitted to enter it (for example when embedded in an iframe without the required permission). A fullscreen request started viaFullscreen.onClick(T)fails in this state. -
NOT_FULLSCREEN
The browser can go fullscreen and the page is currently not fullscreen. This is the normal state before the user triggers a fullscreen request. -
FULLSCREEN
The page is currently displayed in fullscreen.
-
-
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
-