registerNotificationsPermission
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
method for creating a BaseNotificationsPermissionManagerBuilder from a PermissionContext
the Duration after which the system should poll for changes to the permission if automatic detection is impossible.
the BasePermissionManager.Settings to apply to any BasePermissionManager created using the registered builders.
Throws
if either the BaseNotificationsPermissionManagerBuilder or PermissionStateRepo have already been registered
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
method for creating a BaseNotificationsPermissionManagerBuilder from a PermissionContext
method for creating a PermissionStateRepo for NotificationsPermission given a BaseNotificationsPermissionManagerBuilder and CoroutineContext
Throws
if either the BaseNotificationsPermissionManagerBuilder or PermissionStateRepo have already been registered