Your app’s response to a cancel ride intent.


class INCancelRideIntentResponse : INIntentResponse


An 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 object in the confirm(cancelRide:completion:) and handle(cancelRide:completion:) methods of your handler object. For more information about implementing your handler object, see INCancelRideIntentHandling.


Initializing the Response Object

init(code: INCancelRideIntentResponseCode, userActivity: NSUserActivity?)

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

Getting the Response Code

var code: INCancelRideIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INCancelRideIntentResponseCode

Constants indicating the state of the response.

Specifying Cancellation Fees

var cancellationFee: INCurrencyAmount?

The cancellation fee charged by your service.

var cancellationFeeThreshold: DateComponents?

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


Inherits From

Conforms To

See Also

Cancel Ride

protocol INCancelRideIntentHandling

The handler interface for canceling a previously booked ride.

class INCancelRideIntent

An intent requesting the cancellation of a previously booked ride.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software