cordova-silent-mode-extended
v0.9.0
Published
Check if iOS device is in silent mode.
Downloads
10
Maintainers
Readme
Cordova Silent Mode
Forked from https://github.com/khevamann/cordova-silent-mode
This plugin determines is an iOS device is on silent mode or not.
Installation
cordova plugin add https://github.com/gsiuniak/cordova-silent-mode
Usage
// Must be initialized before you wish to start observing changes //
SilentMode.init();
// Function with callbacks to determine whether or not device is muted - Will only run ONCE //
SilentMode.isMuted(
function onMuted() {
console.log('Device ringer is OFF');
},
function onUnmuted() {
console.log('Device ringer is ON');
});
Supported Platforms
- iOS