@guilhermeabreudev/capacitor-system-sounds
v1.0.0
Published
Listagem de sistema padrão do sistema
Downloads
73
Maintainers
Readme
@guilhermeabreudev/capacitor-system-sounds
Listagem de sistema padrão do sistema
Install
npm install @guilhermeabreudev/capacitor-system-sounds
npx cap sync
API
getSystemSounds(...)
getSystemSounds(configSystemSound: { type: SystemSoundsType; }) => Promise<{ sounds: { title: string; uri: string; }[]; }>
| Param | Type |
| ----------------------- | ------------------------------------------------------------------------ |
| configSystemSound
| { type: SystemSoundsType; } |
Returns: Promise<{ sounds: { title: string; uri: string; }[]; }>
salveSoundLocation(...)
salveSoundLocation(systemSound: { uri: string; name: string; }) => Promise<{ filePath: string; }>
| Param | Type |
| ----------------- | ------------------------------------------- |
| systemSound
| { uri: string; name: string; } |
Returns: Promise<{ filePath: string; }>
Enums
SystemSoundsType
| Members | Value |
| ------------------ | -------------- |
| RINGTONE
| 1 |
| NOTIFICATION
| 2 |
| ALARM
| 4 |
| ALL
| 7 |