WebIDLpedia

WakeLock interface

Definition

Screen Wake Lock API defines WakeLock



[SecureContext, Exposed=(Window)]
interface WakeLock {
  Promise<WakeLockSentinel> request(optional WakeLockType type = "screen");
};

Methods and attributes that return objects implementing WakeLock

Referring IDL interfaces/dictionaries