Package com.vaadin.flow.component.screenorientation
@NullMarked
package com.vaadin.flow.component.screenorientation
Server-side access to the browser's Screen Orientation API for observing and
locking the device's screen orientation.
ScreenOrientation.orientationSignal()
reports the current orientation (portrait, landscape, and its angle) and
updates as the device rotates.
ScreenOrientation.lock(...) pins the screen to a chosen orientation.
Locking is mainly relevant on mobile devices and typically only succeeds
while the page is in fullscreen; it is commonly rejected on desktop browsers
and on devices without an orientation sensor. A failed lock reports a
ScreenOrientationLockError.
-
ClassDescriptionEntry point for the browser Screen Orientation API.The current screen orientation, as reported by
ScreenOrientation.orientationSignal(): both itstype(portrait or landscape, primary or secondary) and its rotation angle.Describes a failed screen-orientation lock request.Typed reasons why a screen-orientation lock request can fail.Represents the orientation type of the browser screen.