Instance Method

cancelRequestWithError:

Cancels the request.

Declaration

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

Parameters

error

Use an error domain of ASExtensionErrorDomain and a code of type ASExtensionErrorCode.

Discussion

Call this method if the user cancels the action or if a failure occurs. The system dismisses your extension’s view controller automatically.