Skip to content

angeloraso/capacitor-audio-toggle

Repository files navigation

@anuradev/capacitor-audio-toggle

Capacitor plugin to audio toggle

Install

npm install @anuradev/capacitor-audio-toggle
npx cap sync

API

setSpeakerOn(...)

setSpeakerOn(data: { speakerOn: boolean; }) => Promise<void>
Param Type
data { speakerOn: boolean; }

reset()

reset() => Promise<void>

addListener('speakerOn', ...)

addListener(eventName: 'speakerOn', listenerFunc: (data: { status: boolean; }) => void) => Promise<PluginListenerHandle>
Param Type
eventName 'speakerOn'
listenerFunc (data: { status: boolean; }) => void

Returns: Promise<PluginListenerHandle>


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published