Skip to content

Creiger/capacitor-audio-toggle

 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.8%
  • JavaScript 14.6%
  • Swift 4.9%
  • TypeScript 4.4%
  • HTML 3.8%
  • Ruby 3.2%
  • Other 2.3%