awake-lock
Version:
A comprehensive wake lock library for preventing device sleep with intelligent fallback strategies and exceptional performance
16 lines • 644 B
TypeScript
import { FallbackStrategy, WakeLockType, WakeLockSentinel, RequestOptions } from '../types';
export declare class AudioContextStrategy implements FallbackStrategy {
readonly name = "audio-context";
readonly priority = 3;
private activeContexts;
isSupported(): boolean;
request(type: WakeLockType, options?: RequestOptions): Promise<WakeLockSentinel>;
release(): Promise<void>;
private setupAudioContext;
private createSentinel;
private releaseSentinel;
getActiveContextsCount(): number;
suspendAll(): Promise<void>;
resumeAll(): Promise<void>;
}
//# sourceMappingURL=AudioContextStrategy.d.ts.map