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