1.0.2 • Published 4 years ago

cordova-plugin-speaker v1.0.2

Weekly downloads
4
License
Apache
Repository
github
Last release
4 years ago

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)
})