Protocol

NSExtensionRequestHandling

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

Declaration

@protocol NSExtensionRequestHandling

Overview

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

Topics

Preparing for a Request

- beginRequestWithExtensionContext:

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

Required.

See Also

Extension Support

NSExtensionContext

The host app context from which an app extension is invoked.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software