<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCancelRideIntentResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INCancelRideIntentResponse"
  },
  "title" : "INCancelRideIntentResponse"
}
-->

# INCancelRideIntentResponse

Your app’s response to a cancel ride intent.

```
class INCancelRideIntentResponse
```

## Overview

An [`INCancelRideIntentResponse`](/documentation/Intents/INCancelRideIntentResponse) object contains your app’s response to the cancellation of a ride. After creating the response object, specify any cancellation-related fees using the properties of this object. Siri and Maps display your response information to the user during the confirmation phase.

You create an [`INCancelRideIntentResponse`](/documentation/Intents/INCancelRideIntentResponse) object in the [`confirm(cancelRide:completion:)`](/documentation/Intents/INCancelRideIntentHandling/confirm(cancelRide:completion:)) and [`handle(cancelRide:completion:)`](/documentation/Intents/INCancelRideIntentHandling/handle(cancelRide:completion:)) methods of your handler object. For more information about implementing your handler object, see [`INCancelRideIntentHandling`](/documentation/Intents/INCancelRideIntentHandling).

## Topics

### Initializing the Response Object

[`init(code: INCancelRideIntentResponseCode, userActivity: NSUserActivity?)`](/documentation/Intents/INCancelRideIntentResponse/init(code:userActivity:))

Initializes the response object with the specified code and user activity object.

### Getting the Response Code

[`var code: INCancelRideIntentResponseCode`](/documentation/Intents/INCancelRideIntentResponse/code)

The code indicating whether you successfully handled the intent.

[`enum INCancelRideIntentResponseCode`](/documentation/Intents/INCancelRideIntentResponseCode)

Constants indicating the state of the response.

### Specifying Cancellation Fees

[`var cancellationFee: INCurrencyAmount?`](/documentation/Intents/INCancelRideIntentResponse/cancellationFee)

The cancellation fee charged by your service.

[`var cancellationFeeThreshold: DateComponents?`](/documentation/Intents/INCancelRideIntentResponse/cancellationFeeThreshold)

The amount of time that must elapse before cancellation fees apply.

## Relationships

### Inherits From

[`INIntentResponse`](/documentation/Intents/INIntentResponse)

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`Equatable`](/documentation/Swift/Equatable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

---

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)