Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 1.92 KB

File metadata and controls

77 lines (47 loc) · 1.92 KB

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>