Package com.vaadin.flow.component.wakelock


@NullMarked package com.vaadin.flow.component.wakelock
Server-side access to the browser's Screen Wake Lock API, which keeps the device screen from dimming or locking ? useful for dashboards, kiosks, presentations, and recipe or workout screens.

WakeLock.request() asks the browser to hold a wake lock and re-acquire it across tab visibility changes; WakeLock.release() drops it. WakeLock.activeSignal() reflects whether a lock is currently held, and WakeLock.availabilitySignal() hints at whether the API is usable so you can hide wake-lock controls up front.

The API requires a secure context (HTTPS or localhost). The browser releases the lock automatically when the tab is hidden (the client re-acquires it when the tab is shown again) and may drop it under power saving or low battery.