@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
24 lines (23 loc) • 709 B
TypeScript
/**
* Service for managing screen wake lock functionality
*
* Uses the Web Wake Lock API to keep the device screen awake
* https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API
*/
export declare class ScreenService {
private wakeLock;
/**
* Check if the Wake Lock API is supported
*/
isSupported(): boolean;
/**
* Request a wake lock to keep the screen on
* @returns Promise resolving to true if successful, false otherwise
*/
requestWakeLock(): Promise<boolean>;
/**
* Release the current wake lock
* @returns Promise resolving to true if released, false if no lock was active
*/
releaseWakeLock(): Promise<boolean>;
}