Releases: pankaj89/PermissionHelper
Releases · pankaj89/PermissionHelper
Permission Helper 2.3
Permission Helper 2.2
Released new version 2.2
Permission Helper 2.1
Added hasPermission()
If your project's compileSdkVersion is less then 28 then use
compile 'com.master.android:permissionhelper:2.0'
else you faced
error: resource android:attr/dialogCornerRadius not found.
while syncing
Permission Helper 2.0
Adds support to kotlin
permissionHelper = PermissionHelper(this, arrayOf(Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CALL_PHONE), 100)
permissionHelper?.denied {
if (it) {
Log.d(TAG, "Permission denied by system")
permissionHelper?.openAppDetailsActivity()
} else {
Log.d(TAG, "Permission denied")
}
}
Request all permission
permissionHelper?.requestAll {
Log.d(TAG, "All permission granted")
}