cordova-silent-mode-extended

0.9.0 • Public • Published

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

Package Sidebar

Install

npm i cordova-silent-mode-extended

Weekly Downloads

2

Version

0.9.0

License

MIT

Last publish

Collaborators

  • gsiuniak