赞
踩
implementation ‘com.qw:soulpermission:1.2.2’
如何使用:
SoulPermission.getInstance().checkAndRequestPermissions(
Permissions.build(permission), new CheckRequestPermissionsListener() {
@Override
public void onAllPermissionOk(Permission[] allPermissions) {
startAct();
}
@Override
public void onPermissionDenied(Permission[] refusedPermissions) {
startAct();
}
});
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。