@gachlab/capacitor-keep-awake-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@gachlab/capacitor-keep-awake-plugin

A plugin to keep awake the device screen

Install

npm install @gachlab/capacitor-keep-awake-plugin
npx cap sync

API

dontAllowSleep()

dontAllowSleep() => Promise<{ isAllowdSleep: boolean; }>

Returns: Promise<{ isAllowdSleep: boolean; }>


allowSleep()

allowSleep() => Promise<{ isAllowdSleep: boolean; }>

Returns: Promise<{ isAllowdSleep: boolean; }>


Readme

Keywords

Package Sidebar

Install

npm i @gachlab/capacitor-keep-awake-plugin

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

18.2 kB

Total Files

26

Last publish

Collaborators

  • gach