NotificationsPermissionStateRepo

class NotificationsPermissionStateRepo(notificationsPermission: NotificationsPermission, builder: BaseNotificationsPermissionManagerBuilder, monitoringInterval: Duration = defaultMonitoringInterval, settings: BasePermissionManager.Settings = BasePermissionManager.Settings(), coroutineContext: CoroutineContext) : PermissionStateRepo<NotificationsPermission>

A PermissionStateRepo for NotificationsPermission

Parameters

notificationsPermission

the NotificationsPermission to be managed

builder

The NotificationsPermissionManagerBuilder for creating the NotificationsPermissionManager 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 NotificationsPermissionManager created by the builder

coroutineContext

The CoroutineContext to run the state machine on.

Constructors

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

Properties

Functions

Link copied to clipboard
open suspend override fun collect(collector: FlowCollector<PermissionState<NotificationsPermission>>): 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<NotificationsPermission>) -> Result): Result