ServiceWorkerRegistration
This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin. Available only in secure contexts.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun getNotifications(filter: GetNotificationOptions = definedExternally): ReadonlyArray<Notification>
Link copied to clipboard
fun getNotificationsAsync(filter: GetNotificationOptions = definedExternally): Promise<ReadonlyArray<Notification>>
Link copied to clipboard
Link copied to clipboard
fun showNotificationAsync(title: String, options: NotificationOptions = definedExternally): Promise<Void>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard