mirror of
https://github.com/liujingdong/cordovaAddPermissions.git
synced 2026-06-03 00:01:10 +08:00
9863d76af18f58fa748cb129454f566e313a0401
功能一 权限验证 title: android6.0动态权限验证 description: android6.0以上权限验证的cordova插件 Installation: ionic plugin add https://github.com/liujingdong/cordovaAddPermissions.git Supported Platforms: android Usage: var perArr = ["android.permission.WRITE_EXTERNAL_STORAGE","android.permission.RECORD_AUDIO","android.permission.CAMERA"] PermissionsPlugin.addPermissions("权限",onPermissionsSuccess,onPermissionsFail,perArr); onPermissionsSuccess:成功回调方法 onPermissionsFail:失败回调方法
功能二 判断网络及其VPN状态 title: 网络及其VPN状态判断 description: 检查网络状态,判断是否连接了VPN Installation: ionic plugin add https://github.com/liujingdong/cordovaAddPermissions.git Supported Platforms: android Usage: PermissionsPlugin.addPermissions("VPN",function (result) { //成功的回调,VPN_OK为连接了VPN,否则为网络状态 alert("看看" + result); },function (err) { //失败的回调 alert("错误了" + err); },null);
Description
Languages
Java
93.2%
JavaScript
6.8%