Skip to content

flexi-xu/phonegap-plugin-ringer-mode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phonegap-plugin-ringer-mode

This plugin lets you set and get the ringer mode on Android platform

Installation

phonegap plugin install phonegap-plugin-ringer-mode

Usage

Get
RingerMode.get(function(ringerMode){
  //do something with the ringer mode
}); 
Set
RingerMode.set(ringerMode, function(){
  //this callback gets called when the ringer mode is successfully set
}); 
Enum

In both of the methods above ringerMode will be either of the following

RingerMode.VIBRATE 
RingerMode.SILENT 
RingerMode.NORMAL 

these ringer modes are provided by the native android AudioManager class, you can read more about here

About

Lets you set the ringer mode on Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 84.7%
  • JavaScript 15.3%