capacitor-audio-permission
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i capacitor-audio-permission

Weekly Downloads

60

Version

0.6.0

License

MIT

Unpacked Size

21.2 kB

Total Files

27

Last publish

Collaborators

  • jmricardo