NSExtensionContext
The host app context from which an app extension is invoked.
Declaration
class NSExtensionContextOverview
When a host app sends a request to an app extension, it provides an extension context. For many app extensions, the most important part of the context is the data the user wants to work with, which is contained in the inputItems property.
Topics
Handling requests
completeRequest(returningItems:completionHandler:)cancelRequest(withError:)NSExtensionItemsAndErrorsKey
Opening URLs
Storing extension items
Controlling media playback in notification content extensions
Populating your share extension with metadata
Getting Siri-related information
Supporting broadcasting
Handling notification actions
Working with notifications
NSExtensionHostDidBecomeActiveNSExtensionHostWillResignActiveNSExtensionHostDidEnterBackgroundNSExtensionHostWillEnterForeground
Working with notification messages
NSExtensionContext.DidBecomeActiveMessageNSExtensionContext.WillResignActiveMessageNSExtensionContext.DidEnterBackgroundMessageNSExtensionContext.WillEnterForegroundMessage