@anuradev/capacitor-audio-toggle
v2.0.6
Published
Capacitor plugin to audio toggle
Downloads
24
Readme
@anuradev/capacitor-audio-toggle
Capacitor plugin to audio toggle
Install
npm install @anuradev/capacitor-audio-toggle
npx cap sync
API
setSpeakerOn(...)
setSpeakerOn(data: { speakerOn: boolean; }) => Promise<void>
| Param | Type |
| ---------- | ------------------------------------ |
| data
| { speakerOn: boolean; } |
reset()
reset() => Promise<void>
addListener('speakerOn', ...)
addListener(eventName: 'speakerOn', listenerFunc: (data: { status: boolean; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
| Param | Type |
| ------------------ | ---------------------------------------------------- |
| eventName
| 'speakerOn' |
| listenerFunc
| (data: { status: boolean; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
removeAllListeners()
removeAllListeners() => Promise<void>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |