<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCancelRideIntentHandling/confirm(cancelRide:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INCancelRideIntentHandling(im)confirmCancelRide:completion:"
  },
  "title" : "confirm(cancelRide:completion:)"
}
-->

# confirm(cancelRide:completion:)

Confirms that you can cancel the ride.

```
optional func confirm(cancelRide intent: INCancelRideIntent, completion: @escaping @Sendable (INCancelRideIntentResponse) -> Void)
```

```
optional func confirm(cancelRide intent: INCancelRideIntent) async -> INCancelRideIntentResponse
```

## Parameters

`intent`

The intent object containing details about the user’s request.

`completion`

The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

- response: The [`INCancelRideIntentResponse`](/documentation/Intents/INCancelRideIntentResponse) object containing the status of whether your app is able to cancel the ride. This parameter must not be `nil`.

## Discussion

Implement this method to create a response object with information about whether you can cancel the ride. If your service charges fees for canceling a ride, include the fee information in your response object. Siri or Maps then presents the details of your response to the user.

If the code in your response is not [`INCancelRideIntentResponseCode.ready`](/documentation/Intents/INCancelRideIntentResponseCode/ready) or [`INCancelRideIntentResponseCode.success`](/documentation/Intents/INCancelRideIntentResponseCode/success), SiriKit aborts the handling of the intent object and falls back to other options. Specifically, if you supplied an <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> object in the [`userActivityForCancelingInApplication`](/documentation/Intents/INRideStatus/userActivityForCancelingInApplication) property of your [`INRideStatus`](/documentation/Intents/INRideStatus) object when booking the ride, SiriKit delivers that user activity object to your app.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)