awake-lock
Version:
A comprehensive wake lock library for preventing device sleep with intelligent fallback strategies and exceptional performance
12 lines • 587 B
TypeScript
import { FallbackStrategy, WakeLockType, WakeLockSentinel, RequestOptions, InternalWakeLockSentinel } from '../types';
export declare class ScreenWakeLockStrategy implements FallbackStrategy {
readonly name = "screen-wake-lock";
readonly priority = 1;
private activeSentinels;
isSupported(): boolean;
request(type: WakeLockType, options?: RequestOptions): Promise<WakeLockSentinel>;
release(): Promise<void>;
getActiveSentinels(): ReadonlySet<InternalWakeLockSentinel>;
private createWrappedSentinel;
}
//# sourceMappingURL=ScreenWakeLockStrategy.d.ts.map