---
title: WKWebExtension.Action
framework: webkit
role: symbol
role_heading: Class
path: webkit/wkwebextension/action
---

# WKWebExtension.Action

An object that encapsulates the properties for an individual web extension action.

## Declaration

```swift
@MainActor class Action
```

## Overview

Overview This class provides access to action properties, such as pop-up, icon, or title, with tab-specific values.

## Topics

### Instance Properties

- [associatedTab](webkit/wkwebextension/action/associatedtab.md)
- [badgeText](webkit/wkwebextension/action/badgetext.md)
- [hasUnreadBadgeText](webkit/wkwebextension/action/hasunreadbadgetext.md)
- [inspectionName](webkit/wkwebextension/action/inspectionname.md)
- [isEnabled](webkit/wkwebextension/action/isenabled.md)
- [label](webkit/wkwebextension/action/label.md)
- [menuItems](webkit/wkwebextension/action/menuitems.md)
- [popupPopover](webkit/wkwebextension/action/popuppopover.md)
- [popupViewController](webkit/wkwebextension/action/popupviewcontroller.md)
- [popupWebView](webkit/wkwebextension/action/popupwebview.md)
- [presentsPopup](webkit/wkwebextension/action/presentspopup.md)
- [webExtensionContext](webkit/wkwebextension/action/webextensioncontext.md)

### Instance Methods

- [closePopup()](webkit/wkwebextension/action/closepopup().md)
- [icon(for:)](webkit/wkwebextension/action/icon(for:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)

## See Also

### Classes

- [WKWebExtension.Command](webkit/wkwebextension/command.md)
- [WKWebExtension.DataRecord](webkit/wkwebextension/datarecord.md)
- [WKWebExtension.MatchPattern](webkit/wkwebextension/matchpattern.md)
- [WKWebExtension.MessagePort](webkit/wkwebextension/messageport.md)
- [WKWebExtension.TabConfiguration](webkit/wkwebextension/tabconfiguration.md)
- [WKWebExtension.WindowConfiguration](webkit/wkwebextension/windowconfiguration.md)
- [WKWebExtensionController.Configuration](webkit/wkwebextensioncontroller/configuration-swift.class.md)
