Class FullScreen

java.lang.Object
org.vaadin.firitin.util.fullscreen.FullScreen

@Deprecated(since="3.6", forRemoval=true) public class FullScreen extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Vaadin 25.2 ships a native fullscreen API, com.vaadin.flow.component.fullscreen.Fullscreen. Arm entering with Fullscreen.onClick(component).enter(component) (once at construction, within the user-gesture window), exit any time with Fullscreen.exit(), and observe state via Fullscreen.stateSignal() instead of the async isFullscreen() future.
Java API for requesting full screen mode in a Vaadin application.

Note that the browsers require user interaction to enter full screen mode, so this API should be called in response to a user action, like a button click or a similar event. Requesting full screen mode in a constructor of a view or using server push will likely not work as expected.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.vaadin.flow.shared.Registration
    addFullscreenChangeListener(com.vaadin.flow.component.ComponentEventListener<FullscreenChangeEvent> listener)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks if the full screen mode is currently available.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Checks if the current UI is in full screen mode.
    static void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    static void
    requestFullscreen(com.vaadin.flow.component.Component component)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Requests full screen mode for the given component.
    static void
    requestFullscreenRaw(com.vaadin.flow.component.Component component)
    Deprecated.
    Consider using requestFullscreen(Component) instead.
    static void
    requestFullscreenRaw(com.vaadin.flow.dom.Element el)
    Deprecated.
    Requesting full screen for a specific element may have limitations in the current Vaadin version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FullScreen

      public FullScreen()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • requestFullscreen

      public static void requestFullscreen()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • requestFullscreen

      public static void requestFullscreen(com.vaadin.flow.component.Component component)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Requests full screen mode for the given component.

      Note that on the client side, fullscreen mode is technically requested for the html element and the rest of the view is hidden during the full screen mode. This is to work around current limitation in "overlay components" (like Notification, ComboBox popup, etc.) and theme. Thus, if you have some elements in the "index.html" that are not part of the Vaadin Flow view, they may not be visible in full screen mode. Same if you are using embedding. In these cases you might try using requestFullscreenRaw(Component) method instead.

      Parameters:
      component - the component for which to request full screen mode
      See Also:
    • requestFullscreenRaw

      @Deprecated(forRemoval=false) public static void requestFullscreenRaw(com.vaadin.flow.dom.Element el)
      Deprecated.
      Requesting full screen for a specific element may have limitations in the current Vaadin version. Consider using requestFullscreen(Component) instead.
      Requests full screen mode for the given element.
      Parameters:
      el - the element for which to request full screen mode
    • requestFullscreenRaw

      @Deprecated(forRemoval=false) public static void requestFullscreenRaw(com.vaadin.flow.component.Component component)
      Deprecated.
      Consider using requestFullscreen(Component) instead. See implementation notes in requestFullscreen(Component) for more information.
      Requests full screen mode for the given component's element.
      Parameters:
      component - the component for which to request full screen mode
    • exitFullscreen

      public static void exitFullscreen()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isFullscreen

      public static CompletableFuture<Boolean> isFullscreen()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if the current UI is in full screen mode.
      Returns:
      a CompletableFuture that resolves to true if the UI is in full screen mode, false otherwise
    • fullScreenAvailable

      public static CompletableFuture<Boolean> fullScreenAvailable()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if the full screen mode is currently available.
      Returns:
      a CompletableFuture that resolves to true if full screen mode is available, false otherwise
    • addFullscreenChangeListener

      public static com.vaadin.flow.shared.Registration addFullscreenChangeListener(com.vaadin.flow.component.ComponentEventListener<FullscreenChangeEvent> listener)
      Deprecated, for removal: This API element is subject to removal in a future version.