1.0.0 • Published 1 year ago
@gachlab/capacitor-dnd-plugin v1.0.0
@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 |