Tells the host app to complete the app extension request with an array of result items.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An array of result items, each an
NSExtensionobject, to return to the host app.
An optional block to be called when the request completes, performed as a background priority task.
The block takes the following parameter:
A Boolean value that indicates whether the system is terminating a previous invocation of the
This parameter is
truewhen the system prematurely terminates a
completionblock that was previously invoked and had not otherwise expired.
Calling this method eventually dismisses the app extension’s view controller.