mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-19 09:18:02 +00:00
wake lock on start game
This commit is contained in:
9
src/Types/WakeLock.ts
Normal file
9
src/Types/WakeLock.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
type WakeLockType = 'screen';
|
||||
|
||||
export type WakeLock = {
|
||||
isSupported: boolean;
|
||||
request: (type?: WakeLockType) => Promise<void>;
|
||||
active: boolean;
|
||||
release: () => Promise<void>;
|
||||
type: 'screen' | undefined;
|
||||
};
|
||||
Reference in New Issue
Block a user