Instance Method

cancelRequest(withError:)

Cancels the request.

Declaration

func cancelRequest(withError error: Error)

Parameters

error

Use an error domain of ASExtensionErrorDomain and a code of type ASExtensionError.Code.

Discussion

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