Skip to content

gsiuniak/cordova-silent-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if an iOS device is in silent mode or not.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published