Class

INCancelRideIntentResponse

Your app’s response to a cancel ride intent.

Declaration

@interface INCancelRideIntentResponse : INIntentResponse

Overview

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 confirmCancelRide:completion: and handleCancelRide:completion: methods of your handler object. For more information about implementing your handler object, see INCancelRideIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

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

Getting the Response Code

code

The code indicating whether you successfully handled the intent.

INCancelRideIntentResponseCode

Constants indicating the state of the response.

Specifying Cancellation Fees

cancellationFee

The cancellation fee charged by your service.

cancellationFeeThreshold

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

Relationships

Inherits From

See Also

Cancel Ride

INCancelRideIntentHandling

The handler interface for canceling a previously booked ride.

INCancelRideIntent

An intent requesting the cancellation of a previously booked ride.