---
title: "handle(action:for:completionHandler:)"
framework: managedsettings
role: symbol
role_heading: Instance Method
path: "managedsettings/shieldactiondelegate/handle(action:for:completionhandler:)-4tqna"
---

# handle(action:for:completionHandler:)

Allows the extension to respond to a user action when the system displays a shield over a website.

## Declaration

```swift
func handle(action: ShieldAction, for webDomain: WebDomainToken, completionHandler: @escaping (ShieldActionResponse) -> Void)
```

## Parameters

- `action`: The user’s action.
- `webDomain`: The web domain that the shield covers.
- `completionHandler`: A closure for your extension to call after you handle the user’s action.

## See Also

### Responding to someone’s action

- [handle(action:for:completionHandler:)](managedsettings/shieldactiondelegate/handle(action:for:completionhandler:)-4jgek.md)
- [handle(action:for:completionHandler:)](managedsettings/shieldactiondelegate/handle(action:for:completionhandler:)-9hcqc.md)
