ServiceWorker
Generated.swift:15144class ServiceWorker
class ServiceWorker
import DOM
class EventTarget
protocol AbstractWorker : JSBridgedClass
protocol Any_MessageEventSource : ConvertibleToJSValue
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 Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
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 }
@ClosureAttribute1Optional var onstatechange: EventHandler { get set }
@ReadonlyAttribute var scriptURL: String { get }
@ReadonlyAttribute var state: ServiceWorkerState { get }
func postMessage(message: JSValue, options: StructuredSerializeOptions? = nil)
func postMessage(message: JSValue, transfer: [JSObject])
var onerror: EventHandler { get nonmutating set }