2.0.6 • Published 7 months ago

@anuradev/capacitor-audio-toggle v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@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>
ParamType
data{ speakerOn: boolean; }

reset()

reset() => Promise<void>

addListener('speakerOn', ...)

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

Returns: Promise<PluginListenerHandle> & PluginListenerHandle


removeAllListeners()

removeAllListeners() => Promise<void>

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
1.1.6

10 months ago

2.0.3

7 months ago

2.0.2

10 months ago

2.0.5

7 months ago

2.0.4

7 months ago

2.0.6

7 months ago

1.1.5

11 months ago

2.0.1

11 months ago

2.0.0

12 months ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago