---
title: INCancelRideIntent
framework: intents
role: symbol
role_heading: Class
path: intents/incancelrideintent
---

# INCancelRideIntent

An intent requesting the cancellation of a previously booked ride.

## Declaration

```swift
class INCancelRideIntent
```

## Overview

Overview When the user cancels a ride that was previously booked through Siri or Maps, SiriKit sends an INCancelRideIntent object to your handler. SiriKit populates this intent object with the ride identifier that you provided when originally booking the ride. Upon receiving this intent, verify the ride information and cancel the ride accordingly. To handle this intent, the handler object in your Intents extension must adopt the INCancelRideIntentHandling protocol. Your handler should confirm the request and create an INCancelRideIntentResponse object with the status of the ride. SiriKit prefers sending this intent object to your extension over canceling a ride by other means. So when responding to an INRequestRideIntent object, you can continue to set the userActivityForCancelingInApplication property of your response’s INRideStatus object to allow cancellation of the ride in your app. SiriKit uses that NSUserActivity object only on systems where this intent is unavailable or not supported by your extension. Additional Intent Attributes The following table lists additional attributes of this intent object:  |   |   |

## Topics

### Initializing an Intent Object

- [init(rideIdentifier:)](intents/incancelrideintent/init(rideidentifier:).md)

### Identifying the Ride

- [rideIdentifier](intents/incancelrideintent/rideidentifier.md)

## Relationships

### Inherits From

- [INIntent](intents/inintent.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [INIntentSetImageKeyPath](intents/inintentsetimagekeypath.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Cancel Ride

- [INCancelRideIntentHandling](intents/incancelrideintenthandling.md)
- [INCancelRideIntentResponse](intents/incancelrideintentresponse.md)
