open fun grantIf(predicate: (Permission) -> Boolean): Boolean (source)
Grants this permission request if the provided predicate is true for any of the requested permissions.
predicate - predicate to test for.
Return
true if the permission request was granted, otherwise false.