Skip to content

conghuahuadan/Permission

Repository files navigation

PermissionUtils (权限工具类)

依赖

Download

dependencies {
    compile 'com.conghuahuadan:permission:latestVersion'
}

使用

PermissionUtils.getInstance(this)
        .permission(PermissionConstants.PHONE,
                PermissionConstants.STORAGE,
                PermissionConstants.CAMERA,
                PermissionConstants.CONTACTS)
        .callback(new PermissionUtils.Callback() {
            @Override
            public void onGranted(List<String> permissionsGranted) {
            }

            @Override
            public void onDenied(List<String> permissionsDenied,
                                 List<String> permissionsDeniedForever) {
            }
        })
        .request();

参考

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages