---
title: NSExtensionRequestHandling
framework: foundation
role: symbol
role_heading: Protocol
path: foundation/nsextensionrequesthandling
---

# NSExtensionRequestHandling

The interface an app extension uses to respond to a request from a host app.

## Declaration

```swift
protocol NSExtensionRequestHandling : NSObjectProtocol
```

## Overview

Overview The NSExtensionRequestHandling protocol provides a life cycle hook into an app extension. An extension’s principal object can implement this protocol and use beginRequest(with:) to keep track of the request from a host app.

## Topics

### Preparing for a request

- [beginRequest(with:)](foundation/nsextensionrequesthandling/beginrequest(with:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Extension Support

- [NSExtensionContext](foundation/nsextensioncontext.md)
