UNPKG

esp-web-tools

Version:
17 lines (16 loc) • 553 B
/** * Holds a screen wake lock while wanted, so the display doesn't sleep (and the * tab isn't throttled) in the middle of an install. Does nothing in browsers * without the Screen Wake Lock API. * * The browser drops the lock whenever the page is hidden, so it is requested * again when the page becomes visible while the lock is still wanted. */ export declare class ScreenWakeLock { private _wanted; private _sentinel?; acquire(): Promise<void>; release(): Promise<void>; private _handleVisibility; private _request; }