3.0.1 • Published 5 years ago

cordova-plugin-mao-devoptions v3.0.1

Weekly downloads
6
License
Apache 2.0
Repository
github
Last release
5 years ago

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); 
	}
);
3.0.1

5 years ago

3.0.0

5 years ago

2.1.0

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago