createPermissionStateRepo

Creates a BasePermissionStateRepo for a given Permission. Requires that registerPermissionStateRepoBuilder has been called for the Permission type

Return

the BasePermissionStateRepo created for permission

Parameters

P

the type of Permission for which to get a BasePermissionStateRepo

permission

the Permission for which to get a BasePermissionStateRepo

coroutineContext

Throws

if registerPermissionStateRepoBuilder has not been called for the permission.