PermissionStateRepo

constructor(monitoringInterval: Duration = defaultMonitoringInterval, createPermissionManager: (CoroutineScope) -> PermissionManager<P>, coroutineContext: CoroutineContext)

Parameters

P

the type of Permission of the PermissionState

monitoringInterval

the Duration after which the system should poll for changes to the permission if automatic detection is impossible.

createPermissionManager

method for creating a PermissionManager associated with the Permission

coroutineContext

the CoroutineContext the CoroutineContext used to create a coroutine scope for this state machine.