Skip to content

wizpanda/cordova-plugin-mobile-data

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova-Mobile-Data

This plugin set / gets the Mobile data state.

This Plugin Requires https://github.com/Whebcraft/System_api.git

Installation

cordova plugin add https://github.com/Whebcraft/Cordova-Mobile-Data.git

Enable:

cordova.plugins.MobileData.enable(function(data) {
  data.enabled === true    // enabled
}, function(error) {
  // Error
});

Disable:

cordova.plugins.MobileData.disable(function(data) {
  data.enabled === false    // disabled
}, function(error) {
  // Error
});

Toggle:

cordova.plugins.MobileData.toggle(function(data) {
  console.log(data.enabled);
}, function(error) {
  // Error
});

Check:

cordova.plugins.MobileData.check(function() {
  console.log(data.enabled);
}, function(error) {
  // Error
});

About

This plugin set / gets the Mobile data state.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 86.9%
  • JavaScript 13.1%