@gachlab/capacitor-dnd-plugin
A plugin to set and monitor the Do Not Disturb state
Install
npm install @gachlab/capacitor-dnd-plugin
npx cap sync
API
monitor(...)
monitor(callback: (result: DoNotDisturbState) => void) => Promise<void>
Param | Type |
---|---|
callback |
(result: DoNotDisturbState) => void |
toggleDoNotDisturb()
toggleDoNotDisturb() => Promise<void>
Interfaces
DoNotDisturbState
Prop | Type |
---|---|
doNotDisturb |
boolean |