Instance Method


Confirms that you can cancel the ride.


- (void)confirmCancelRide:(INCancelRideIntent *)intent completion:(void (^)(INCancelRideIntentResponse *response))completion;



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


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:


The INCancelRideIntentResponse object containing the status of whether your app is able to cancel the ride. This parameter must not be nil.


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 INCancelRideIntentResponseCodeReady or INCancelRideIntentResponseCodeSuccess, SiriKit aborts the handling of the intent object and falls back to other options. Specifically, if you supplied an NSUserActivity object in the userActivityForCancelingInApplication property of your INRideStatus object when booking the ride, SiriKit delivers that user activity object to your app.