@emmanuelrobinson/keep-awake
v0.0.3
Published
A capacitor plugin to toggle screen sleep prevention
Downloads
156
Maintainers
Readme
keep-awake
A capacitor plugin to toggle screen sleep prevention
Install
npm install npm i @emmanuelrobinson/keep-awake
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
enable()
enable() => Promise<void>
disable()
disable() => Promise<void>
isEnabled()
isEnabled() => Promise<{ value: boolean; }>
Returns: Promise<{ value: boolean; }>