somePermissionPermanentlyDenied

fun somePermissionPermanentlyDenied(host: Activity, deniedPerms: List<String>): Boolean

Check if at least one permission in the list of denied permissions has been permanently denied (user clicked "Never ask again").

Note: Due to a limitation in the information provided by the Android framework permissions API, this method only works after the permission has been denied and your app has received the onPermissionsDenied callback. Otherwise the library cannot distinguish permanent denial from the "not yet denied" case.

Return

true if at least one permission in the list was permanently denied.

Parameters

host

context requesting permissions.

deniedPerms

list of denied permissions, usually from PermissionCallbacks.onPermissionsDenied

fun somePermissionPermanentlyDenied(host: Fragment, deniedPerms: List<String>): Boolean

See also

.somePermissionPermanentlyDenied