@anuradev/capacitor-device-settings
v2.0.0
Published
Capacitor plugin to get/set device settings
Downloads
7
Readme
@anuradev/capacitor-device-settings
Capacitor plugin to get/set device settings
Install
npm install @anuradev/capacitor-device-settings
npx cap sync
API
getRingerMode()
getRingerMode() => Promise<{ mode: RingerMode; }>
Returns: Promise<{ mode: RingerMode; }>
setRingerMode(...)
setRingerMode(data: { mode: RingerMode; }) => Promise<void>
| Param | Type |
| ---------- | ------------------------------------------------------------ |
| data
| { mode: RingerMode; } |
Type Aliases
RingerMode
'normal' | 'silent' | 'vibrate'