capacitor-audio-permission
v0.6.0
Published
Plugin sencillo para solicitar permiso de microfono en Android y iOS.
Downloads
59
Readme
capacitor-audio-permission
Plugin sencillo para solicitar permiso de microfono en Android y iOS.
Install
npm install capacitor-audio-permission
npx cap sync
Usage
Aclaración:
Para poder solicitar el permiso en Android es necesario agregar RECORD_AUDIO al manifest.xml:
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
API
checkPermissions()
checkPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
requestPermissions()
requestPermissions() => Promise<PermissionStatus>
Returns: Promise<PermissionStatus>
Interfaces
PermissionStatus
| Prop | Type |
| ----------- | ----------------------------------------------------------------------------- |
| audio
| PermissionState | 'undetermined' |
Type Aliases
PermissionState
'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'