---
title: "didSelectTabs(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensioncontext/didselecttabs(_:)"
---

# didSelectTabs(_:)

Called by the app when tabs are selected to fire appropriate events with only this extension.

## Declaration

```swift
func didSelectTabs(_ selectedTabs: [any WKWebExtensionTab])
```

## Parameters

- `selectedTabs`: The set of tabs that were selected.

## Discussion

Discussion This method informs only the specific extension that tabs have been selected. If the intention is to inform all loaded extensions consistently, you should use the respective method on the extension controller instead.
