speakerOff()
Disable audio playback through the device speaker and re-enable modem communications.
warning
This feature only applies to Lightning-based iPads when connected to a kiosk over the audio jack.
Disable audio output through the Apple device's built-in speaker and re-enable communications with the kiosk. This function may block for up to 1 second, depending on hardware and iOS version.
AilaCordovaPlugin.speakerOff()
Returns
Promise that resolves when speaker mode is disabled.
Example
AilaCordovaPlugin.speakerOn()
.then(() => {
return playAudioFile();
})
.then(() => {
return AilaCordovaPlugin.speakerOff();
});