ServiceWorkerContainer
Generated.swift:15174class ServiceWorkerContainer
class ServiceWorkerContainer
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 controller: ServiceWorker? { get }
@ClosureAttribute1Optional var oncontrollerchange: EventHandler { get set }
@ClosureAttribute1Optional var onmessage: EventHandler { get set }
@ClosureAttribute1Optional var onmessageerror: EventHandler { get set }
@ReadonlyAttribute var ready: JSPromise { get }
func getRegistration(clientURL: String? = nil) -> JSPromise
func getRegistration(clientURL: String? = nil) async throws -> ServiceWorkerRegistration?
func getRegistrations() -> JSPromise
func getRegistrations() async throws -> [ServiceWorkerRegistration]
func register(scriptURL: String, options: RegistrationOptions? = nil) -> JSPromise
func register(scriptURL: String, options: RegistrationOptions? = nil) async throws -> ServiceWorkerRegistration
func startMessages()