Protocol

NSExtensionRequestHandling

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

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

Adopted By

See Also

Extension Support

class NSExtensionContext

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