android-components / mozilla.components.concept.engine.permission / PermissionRequest / grantIf

grantIf

open fun grantIf(predicate: (Permission) -> Boolean): Boolean (source)

Grants this permission request if the provided predicate is true for any of the requested permissions.

Parameters

predicate - predicate to test for.

Return
true if the permission request was granted, otherwise false.