Instance Method

cancelRequestWithError:

Tells the host app to cancel the app extension request, with a supplied error.

Declaration

- (void)cancelRequestWithError:(NSError *)error;

Parameters

error

The error object to return. It must be non-nil.

Discussion

On return, the userInfo dictionary of the NSError object contains a key named NSExtensionItemsAndErrorsKey which has as its value a dictionary of NSExtensionItem objects and associated NSError instances.

See Also

Handling Requests

completeRequestReturningItems:completionHandler:

Tells the host app to complete the app extension request with an array of result items.