MicrophonePermissionStateRepo

class MicrophonePermissionStateRepo(builder: BaseMicrophonePermissionManagerBuilder, monitoringInterval: Duration = defaultMonitoringInterval, settings: BasePermissionManager.Settings = BasePermissionManager.Settings(), coroutineContext: CoroutineContext) : PermissionStateRepo<MicrophonePermission>

A PermissionStateRepo for MicrophonePermission

Parameters

builder

The MicrophonePermissionManagerBuilder for creating the MicrophonePermissionManager associated with the permission

monitoringInterval

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

settings

the BasePermissionManager.Settings used by the MicrophonePermissionManager created by the builder

coroutineContext

The CoroutineContext to run the state machine on.

Constructors

Link copied to clipboard
constructor(builder: BaseMicrophonePermissionManagerBuilder, monitoringInterval: Duration = defaultMonitoringInterval, settings: BasePermissionManager.Settings = BasePermissionManager.Settings(), coroutineContext: CoroutineContext)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val lazyMutableFlow: Lazy<MutableStateFlow<PermissionState<MicrophonePermission>>>
Link copied to clipboard
open override val stateFlow: StateFlow<PermissionState<MicrophonePermission>>
Link copied to clipboard
val subscriptionCount: StateFlow<Int>

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<PermissionState<MicrophonePermission>>): Nothing
Link copied to clipboard
open suspend override fun firstCollection()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun <Result> useState(action: suspend (PermissionState<MicrophonePermission>) -> Result): Result