DefaultNotificationsPermissionManager

The BasePermissionManager to use as a default for NotificationsPermission

Parameters

context

the Context the NotificationsPermission is to be granted in

notificationsPermission
settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

The BasePermissionManager to use as a default for NotificationsPermission

Parameters

notificationsPermission
settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

The BasePermissionManager to use as a default for NotificationsPermission

Parameters

notificationsPermission
settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

The default BasePermissionManager for NotificationsPermission on the JS family (js + wasmJs).

Backed by the browser Notification API: Notification.permission is polled on the monitoring interval and requestPermissionDidStart calls Notification.requestPermission() to surface the prompt.

Parameters

notificationsPermission
settings

the Settings to apply to this manager.

coroutineScope

the CoroutineScope of this manager.

Constructors

Link copied to clipboard
constructor(context: Context, notificationsPermission: NotificationsPermission, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(notificationsPermission: NotificationsPermission, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(notificationsPermission: NotificationsPermission, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)
constructor(notificationsPermission: NotificationsPermission, settings: BasePermissionManager.Settings, coroutineScope: CoroutineScope)

Types

Link copied to clipboard
class Provider(val notificationCenter: UNUserNotificationCenter, val coroutineScope: CoroutineScope) : CurrentAuthorizationStatusProvider
class Provider(val notificationCenter: UNUserNotificationCenter, val coroutineScope: CoroutineScope) : CurrentAuthorizationStatusProvider

Properties

Link copied to clipboard
Link copied to clipboard
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
open override val events: Flow<PermissionManager.Event>
Link copied to clipboard
expect override val permission: NotificationsPermission

Functions

Link copied to clipboard
override fun requestPermission()
override fun requestPermission()
override fun requestPermission()
override fun requestPermission()
override fun requestPermission()
Link copied to clipboard
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
override fun startMonitoring(interval: Duration)
Link copied to clipboard
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()
override fun stopMonitoring()