createPermissionStateRepo
fun <P : Permission> createPermissionStateRepo(permission: P, coroutineContext: CoroutineContext): BasePermissionStateRepo<*>
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
the CoroutineContext managing the BasePermissionStateRepo
Throws
if registerPermissionStateRepoBuilder has not been called for the permission.