Skip to content

Busivid/cordova-plugin-app-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-app-utils

Cordova AppUtils Plugin for Apache Cordova >= 3.0.0

Installation

cordova plugin add https://github.com/busivid/cordova-plugin-app-utils.git

AppUtils

IdleTimer

Enable / Disable the device sleep mode.

	// Enable the IdleTimer
	apputils.IdleTimer.enable(onSuccess, onError);
	/*
		onSuccess:
			"OK"
		onError:
			{ code: 1, reason: "IdleTimer already enabled." }
	*/

	// Disable the IdleTimer
	apputils.IdleTimer.disable(onSuccess, onError);
	/*
		onSuccess:
			"OK"
		onError:
			{ code: 1, reason: "IdleTimer already disabled." }
	*/

	// Get the IdleTimer Status
	apputils.IdleTimer.getStatus(onSuccess);
	/*
		onSuccess:
			0 = disabled
			1 = enabled
	*/

BundleInfo

Get the App Bundle Info.

	apputils.BundleInfo(onSuccess);
	/*
		onSuccess:
			{
				"localeLanguage": <STRING>,
				"bundleBuild": <STRING>,
				"bundleVersion": <STRING>,
				"bundleId": <STRING>,
				"bundleDisplayName": <STRING>,
				"bundleIsDebug": <STRING>
			}
			automatic available under "apputils.info"
	*/

Supported Platforms

Android iOS

Version History

0.1.0 (2014-06)

  • initial version

About

Cordova AppUtils Plugin for Apache Cordova >= 3.0.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 59.5%
  • Java 27.9%
  • JavaScript 12.6%