cordova-plugin-mao-devoptions

3.0.1 • Public • Published

cordova-plugin-mao-devoptions

Cordova plugin for Android platform to work with developer options

<plugin name="cordova-plugin-mao-devoptions source=npm />

areEnabled()

Checks if developer options are enabled.

	window.plugins.devoptions.areEnabled(successCallback, errorCallback);
Parameters
  • {Function} successCallback - The callback which will be called when operation is successful.
    The function is passed a single integer parameter which is 1 if developer options are enabled.

  • {Function} errorCallback - The callback which will be called when operation encounters an error.
    The function is passed a single string parameter containing the error message.

Example usage
window.plugins.devoptions.areEnabled(
	function(enabled){ 
		console.log("Developer options are " + (enabled ? "enabled" : "not enabled")); 
	}, 
	function(error){ 
		console.error("The following error occurred: " + error); 
	}
);

Readme

Keywords

none

Package Sidebar

Install

npm i cordova-plugin-mao-devoptions

Weekly Downloads

2

Version

3.0.1

License

Apache 2.0

Unpacked Size

16 kB

Total Files

6

Last publish

Collaborators

  • mutnasao