request

suspend fun <P : Permission> request(permission: P): Boolean

Requests a Permission

Return

true if the permission was granted, false otherwise.

Parameters

P

the type of Permission to request.

permission

the P to request

Throws

if the provided PermissionsBuilder has not registered a PermissionStateRepoBuilder for the permission.