mirror of
https://github.com/liujingdong/cordovaAddPermissions.git
synced 2026-05-16 00:01:30 +08:00
7f7969a0c0
android权限验证插件(cordova)
14 lines
453 B
JavaScript
14 lines
453 B
JavaScript
/**
|
|
* Created by CrazyDong on 2017/11/2.
|
|
*/
|
|
var exec = require('cordova/exec');
|
|
|
|
module.exports = {
|
|
/*调用对比
|
|
* js: cordova.exec(callbackContext.success, callbackContext.error, PluginName, action, args);
|
|
* java: public boolean execute(String action, JSONArray args, CallbackContext callbackContext)
|
|
* */
|
|
addPermissions:function(action,success,err,args){
|
|
exec(success,err, "PermissionsPlugin", action, args);
|
|
}
|
|
} |