Handles the user canceling an unfinished ride.
- iOS 11.0+
- Mac Catalyst 13.0+
The intent object containing details about the user’s request. The information in this object has already been confirmed by your handler object.
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:
INCancelobject containing the reason for the cancellation and information about any fees that might still apply. This parameter must not be
Ride Intent Response
In your implementation of this method, cancel the ride described by the
intent parameter, create a response object with any cancellation information, and call the provided
completion handler. If your app is currently providing live status updates for the ride, immediately deliver an updated
INRide object back to SiriKit with the cancellation details. Specifically, change the phase of the ride to
INRide and set the
completion property to an object that indicates the user canceled the ride. Make sure the rest of the information in the
INRide object is still accurate, including the ride identifier and ride option.