capacitor-audio-toggle
v2.0.2
Published
Audio Toggle Plugin for VOIP Apps
Downloads
13
Readme
capacitor-audio-toggle
Audio Toggle Plugin for VOIP Apps
Install
npm install capacitor-audio-toggle
npx cap sync
API
setAudioMode(...)
setAudioMode(options: { mode: string; }) => Promise<{ mode: string; }>
| Param | Type |
| ------------- | ------------------------------ |
| options
| { mode: string; } |
Returns: Promise<{ mode: string; }>
bluetoothConnected()
bluetoothConnected() => Promise<{ isBluetooth: boolean; }>
Returns: Promise<{ isBluetooth: boolean; }>
addListener('bluetoothConnected', ...)
addListener(eventName: 'bluetoothConnected', listenerFunc: (bluetoothConnected: boolean) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
| Param | Type |
| ------------------ | ----------------------------------------------------- |
| eventName
| 'bluetoothConnected' |
| listenerFunc
| (bluetoothConnected: boolean) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |