Android 权限管理框架

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

你可能感兴趣的:(Android)