cancelRequest(withError:)
Cancels the request.
Declaration
func cancelRequest(withError error: any Error)Parameters
- error:
Use an error domain of Asextensionerrordomain and a code of type Code.
Mentioned in
Discussion
Call this method if the user cancels the action or if a failure occurs. The system dismisses your extension’s view controller automatically.