errorDomain
TypeScriptstatic get errorDomain(): Promise<string>Swift declarationnonisolated class let errorDomain: Stringclass · iOS 18.4+ · SDK 27.1
@MainActor class WKWebExtensionstatic get errorDomain(): Promise<string>Swift declarationnonisolated class let errorDomain: StringactionIcon(size: { width: number; height: number }): Promise<(_UIKit_UIImage) | null>Swift declarationfunc actionIcon(for size: CGSize) -> UIImage?icon(size: { width: number; height: number }): Promise<(_UIKit_UIImage) | null>Swift declarationfunc icon(for size: CGSize) -> UIImage?supportsManifestVersion(manifestVersion: number): Promise<boolean>Swift declarationfunc supportsManifestVersion(_ manifestVersion: Double) -> Boolget allRequestedMatchPatterns(): Promise<Array<WKWebExtension_MatchPattern>>Swift declarationvar allRequestedMatchPatterns: Set<WKWebExtension.MatchPattern> { get }get defaultLocale(): Promise<(_Foundation_Locale) | null>Swift declarationvar defaultLocale: Locale? { get }get displayActionLabel(): Promise<(string) | null>Swift declarationvar displayActionLabel: String? { get }get displayDescription(): Promise<(string) | null>Swift declarationvar displayDescription: String? { get }get displayName(): Promise<(string) | null>Swift declarationvar displayName: String? { get }get displayShortName(): Promise<(string) | null>Swift declarationvar displayShortName: String? { get }get displayVersion(): Promise<(string) | null>Swift declarationvar displayVersion: String? { get }get errors(): Promise<Array<NativeError>>Swift declarationvar errors: [any Error] { get }get hasBackgroundContent(): Promise<boolean>Swift declarationvar hasBackgroundContent: Bool { get }get hasCommands(): Promise<boolean>Swift declarationvar hasCommands: Bool { get }get hasContentModificationRules(): Promise<boolean>Swift declarationvar hasContentModificationRules: Bool { get }get hasInjectedContent(): Promise<boolean>Swift declarationvar hasInjectedContent: Bool { get }get hasOptionsPage(): Promise<boolean>Swift declarationvar hasOptionsPage: Bool { get }get hasOverrideNewTabPage(): Promise<boolean>Swift declarationvar hasOverrideNewTabPage: Bool { get }get hasPersistentBackgroundContent(): Promise<boolean>Swift declarationvar hasPersistentBackgroundContent: Bool { get }get manifest(): Promise<Record<string, unknown>>Swift declarationvar manifest: [String : Any] { get }get manifestVersion(): Promise<number>Swift declarationvar manifestVersion: Double { get }get optionalPermissionMatchPatterns(): Promise<Array<WKWebExtension_MatchPattern>>Swift declarationvar optionalPermissionMatchPatterns: Set<WKWebExtension.MatchPattern> { get }get optionalPermissions(): Promise<Array<WKWebExtension_Permission>>Swift declarationvar optionalPermissions: Set<WKWebExtension.Permission> { get }get requestedPermissionMatchPatterns(): Promise<Array<WKWebExtension_MatchPattern>>Swift declarationvar requestedPermissionMatchPatterns: Set<WKWebExtension.MatchPattern> { get }get requestedPermissions(): Promise<Array<WKWebExtension_Permission>>Swift declarationvar requestedPermissions: Set<WKWebExtension.Permission> { get }get version(): Promise<(string) | null>Swift declarationvar version: String? { get }static initAppExtensionBundle(appExtensionBundle: _Foundation_Bundle): Promise<WKWebExtension>Swift declaration@MainActor @preconcurrency convenience init(appExtensionBundle: Bundle) async throwsCreates a web extension initialized with a specified app extension bundle. The app extension bundle must contain a `manifest.json` file in its resources directory. If the manifest is invalid or missing, or the bundle is otherwise improperly configured, an error will be thrown. - Parameter appExtensionBundle: The bundle to use for the new web extension. - Throws: An error if the manifest is invalid or missing, or the bundle is otherwise improperly configured.
static initResourceBaseURL(resourceBaseURL: string): Promise<WKWebExtension>Swift declaration@MainActor @preconcurrency convenience init(resourceBaseURL: URL) async throwsCreates a web extension initialized with a specified resource base URL, which can point to either a directory or a ZIP archive. The URL must be a file URL that points to either a directory with a `manifest.json` file or a ZIP archive containing a `manifest.json` file. If the manifest is invalid or missing, or the URL points to an unsupported format or invalid archive, an error will be returned. - Parameter resourceBaseURL: The file URL to use for the new web extension. - Throws: An error if the manifest is invalid or missing, or the URL points to an unsupported format or invalid archive.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
WKWebExtension.init()
inherited init: cannot prove legal (class declares 2 custom initializers)