cordova-plugin-speaker

1.0.2 • Public • Published

cordova-plugin-speaker

A multi-threaded non-blocking iOS 11+ plugin for toggling the device speaker and retrieving the current audio route.

Audio route will be: speaker, receiver or the actual name of the connected device such as "Bill's Airpods Pro".

Speaker.on(callbackHandler, errorHandler)
Speaker.off(callbackHandler, errorHandler)
Speaker.route(function(route) {
    console.log(route)
}, function(e) {
    console.log(e)
})

Package Sidebar

Install

npm i cordova-plugin-speaker

Weekly Downloads

4

Version

1.0.2

License

Apache

Unpacked Size

4.23 kB

Total Files

6

Last publish

Collaborators

  • bkervaski