Skip to content

gachlab/capacitor-keep-awake-plugin

Repository files navigation

@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; }>


About

A plugin to prevent device sleep

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors