ServiceWorkerRegistration
Generated.swift:15243class ServiceWorkerRegistration
class ServiceWorkerRegistration
import DOM
class EventTarget
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var active: ServiceWorker? { get }
@ReadonlyAttribute var installing: ServiceWorker? { get }
@ReadonlyAttribute var navigationPreload: NavigationPreloadManager { get }
@ClosureAttribute1Optional var onupdatefound: EventHandler { get set }
@ReadonlyAttribute var scope: String { get }
@ReadonlyAttribute var updateViaCache: ServiceWorkerUpdateViaCache { get }
@ReadonlyAttribute var waiting: ServiceWorker? { get }
func unregister() -> JSPromise
func unregister() async throws -> Bool
func update() -> JSPromise
func update() async throws