Enum Class FullscreenSessionState

java.lang.Object
java.lang.Enum<FullscreenSessionState>
com.vaadin.flow.component.page.FullscreenSessionState
All Implemented Interfaces:
Serializable, Comparable<FullscreenSessionState>, Constable

public enum FullscreenSessionState extends Enum<FullscreenSessionState>
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:
  • Enum Constant Details

  • Method Details

    • values

      public static FullscreenSessionState[] 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

      public static FullscreenSessionState valueOf(String name)
      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 name
      NullPointerException - if the argument is null