registerNotificationsPermission

fun PermissionsBuilder.registerNotificationsPermission(notificationsPermissionManagerBuilderBuilder: (PermissionContext) -> BaseNotificationsPermissionManagerBuilder = ::NotificationsPermissionManagerBuilder, monitoringInterval: Duration = PermissionStateRepo.defaultMonitoringInterval, settings: BasePermissionManager.Settings = BasePermissionManager.Settings()): BaseNotificationsPermissionManagerBuilder

Registers a BaseNotificationsPermissionManagerBuilder and PermissionStateRepo for NotificationsPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively Only one builder can be registered.

Return

the BaseNotificationsPermissionManagerBuilder registered

Parameters

notificationsPermissionManagerBuilderBuilder
monitoringInterval

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

settings

the BasePermissionManager.Settings to apply to any BasePermissionManager created using the registered builders.

Throws


Registers a BaseNotificationsPermissionManagerBuilder and PermissionStateRepo for NotificationsPermission to the PermissionsBuilder.register and PermissionsBuilder.registerPermissionStateRepoBuilder respectively Only one builder can be registered.

Return

the BaseNotificationsPermissionManagerBuilder registered

Parameters

notificationsPermissionManagerBuilderBuilder
notificationsPermissionStateRepoBuilder

Throws