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

2.0.2 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i capacitor-audio-toggle

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

36.1 kB

Total Files

27

Last publish

Collaborators

  • killerh