@gachlab/capacitor-dnd-plugin
v1.0.0
Published
A plugin to set and monitor the Do Not Disturb state
Downloads
10
Readme
@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 |