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.