Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

bkervaski/cordova-plugin-speaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published