-
Notifications
You must be signed in to change notification settings - Fork 68
/
wake-lock.idl
29 lines (24 loc) · 955 Bytes
/
wake-lock.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Wake Lock API (https://w3c.github.io/wake-lock/)
dictionary WakeLockPermissionDescriptor : PermissionDescriptor {
WakeLockType type;
};
enum WakeLockType { "screen", "system" };
[Constructor(WakeLockType type), SecureContext, Exposed=(DedicatedWorker,Window)]
interface WakeLock : EventTarget {
[Exposed=Window] static Promise<PermissionState> requestPermission(WakeLockType type);
readonly attribute WakeLockType type;
readonly attribute boolean active;
attribute EventHandler onactivechange;
Promise<void> request(optional WakeLockRequestOptions options);
static sequence<WakeLock> query(optional WakeLockQueryFilter filter);
};
dictionary WakeLockRequestOptions {
AbortSignal? signal = null;
};
dictionary WakeLockQueryFilter {
WakeLockType? type;
boolean? active;
};