errorDomain
TypeScriptstatic get errorDomain(): Promise<string>Swift declarationnonisolated class let errorDomain: Stringclass · iOS 18.4+ · SDK 27.1
@MainActor class MessagePortstatic get errorDomain(): Promise<string>Swift declarationnonisolated class let errorDomain: Stringdisconnect(): Promise<void>Swift declarationfunc disconnect()disconnectThrowing(error?: (NativeError) | null): Promise<void>Swift declarationfunc disconnect(throwing error: (any Error)?)sendMessage(message?: (unknown) | null, completionHandler?: (((arg0: (NativeError) | null) => void)) | null): Promise<void>Swift declarationfunc sendMessage(_ message: Any?) async throwsget applicationIdentifier(): Promise<(string) | null>Swift declarationvar applicationIdentifier: String? { get }get disconnectHandler(): Promise<(((arg0: (NativeError) | null) => Promise<void>)) | null>Swift declarationvar disconnectHandler: (((any Error)?) -> Void)? { get set }setDisconnectHandler(value?: (((arg0: (NativeError) | null) => void)) | null): Promise<void>Swift declarationvar disconnectHandler: (((any Error)?) -> Void)? { get set }get isDisconnected(): Promise<boolean>Swift declarationvar isDisconnected: Bool { get }get messageHandler(): Promise<(((arg0: (unknown) | null, arg1: (NativeError) | null) => Promise<void>)) | null>Swift declarationvar messageHandler: ((Any?, (any Error)?) -> Void)? { get set }setMessageHandler(value?: (((arg0: (unknown) | null, arg1: (NativeError) | null) => void)) | null): Promise<void>Swift declarationvar messageHandler: ((Any?, (any Error)?) -> Void)? { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
WKWebExtension.MessagePort.init()
inherited init: clang: 'init' is unavailable