One Logo Pool Ball
WebKit · IOS API REFERENCE

WKWebExtension.Action

class · iOS 18.4+ · SDK 27.1

@MainActor class Action

Members (15)

method · iOS 18.4+

closePopup

TypeScript
closePopup(): Promise<void>
Swift declaration
func closePopup()
method · iOS 18.4+

icon

TypeScript
icon(size: { width: number; height: number }): Promise<(_UIKit_UIImage) | null>
Swift declaration
func icon(for size: CGSize) -> UIImage?
get · iOS 18.4+

associatedTab

TypeScript
get associatedTab(): Promise<(SDKHandle) | null>
Swift declaration
weak var associatedTab: (any WKWebExtensionTab)? { get }
get · iOS 18.4+

badgeText

TypeScript
get badgeText(): Promise<string>
Swift declaration
var badgeText: String { get }
get · iOS 18.4+

isEnabled

TypeScript
get isEnabled(): Promise<boolean>
Swift declaration
var isEnabled: Bool { get }
get · iOS 18.4+

hasUnreadBadgeText

TypeScript
get hasUnreadBadgeText(): Promise<boolean>
Swift declaration
var hasUnreadBadgeText: Bool { get set }
set · iOS 18.4+

hasUnreadBadgeText

TypeScript
setHasUnreadBadgeText(value: boolean): Promise<void>
Swift declaration
var hasUnreadBadgeText: Bool { get set }
get · iOS 18.4+

inspectionName

TypeScript
get inspectionName(): Promise<(string) | null>
Swift declaration
var inspectionName: String? { get set }
set · iOS 18.4+

inspectionName

TypeScript
setInspectionName(value?: (string) | null): Promise<void>
Swift declaration
var inspectionName: String? { get set }
get · iOS 18.4+

label

TypeScript
get label(): Promise<string>
Swift declaration
var label: String { get }
get · iOS 18.4+

menuItems

TypeScript
get menuItems(): Promise<Array<_UIKit_UIMenuElement>>
Swift declaration
var menuItems: [UIMenuElement] { get }
get · iOS 18.4+

popupViewController

TypeScript
get popupViewController(): Promise<(_UIKit_UIViewController) | null>
Swift declaration
var popupViewController: UIViewController? { get }
get · iOS 18.4+

popupWebView

TypeScript
get popupWebView(): Promise<(WKWebView) | null>
Swift declaration
var popupWebView: WKWebView? { get }
get · iOS 18.4+

presentsPopup

TypeScript
get presentsPopup(): Promise<boolean>
Swift declaration
var presentsPopup: Bool { get }
get · iOS 18.4+

webExtensionContext

TypeScript
get webExtensionContext(): Promise<(WKWebExtensionContext) | null>
Swift declaration
weak var webExtensionContext: WKWebExtensionContext? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

WKWebExtension.Action.init()

inherited init: clang: 'init' is unavailable

All WebKit types →