<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSExtensionRequestHandling",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSExtensionRequestHandling"
  },
  "title" : "NSExtensionRequestHandling"
}
-->

# NSExtensionRequestHandling

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

```
protocol NSExtensionRequestHandling : NSObjectProtocol
```

## Overview

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

## Topics

### Preparing for a request

[`beginRequest(with:)`](/documentation/Foundation/NSExtensionRequestHandling/beginRequest(with:))

Tells the extension to prepare for a host app’s request.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)