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

# handle(action:for:completionHandler:)

Allows the extension to respond to a user action when the system displays a shield over an application or website because of its category.

## Declaration

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

## Parameters

- `action`: The user’s action.
- `category`: The category of the application or website 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:)-4tqna.md)
