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 beginRequest(with:) to keep track of the request from a host app.

Topics

Preparing for a Request

func beginRequest(with: NSExtensionContext)

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

Required.

Relationships

Inherits From

Conforming Types

See Also

Extension Support

class 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