day-part-wakelock
Keep the display awake while your app presents an activity that needs it.
Day is a Rust framework for building apps with native desktop and mobile controls, plus HTML controls on the web.
Locks are scoped handles: releasing the last handle allows normal display sleep again. Acquire and release them on the UI thread. Linux currently has no implementation; browser support depends on the Screen Wake Lock API and page visibility.
Use
Add it to your app: