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