The handler interface for canceling a previously booked ride.
- iOS 11.0+
- Mac Catalyst 13.0+
Use the methods of the
INCancel protocol to confirm and handle requests to cancel the user’s currently active ride. Adopt this protocol in an object of your Intents extension that is capable of canceling the ride with your service.
Users may cancel rides from Siri or Maps. When the user requests to cancel a booked ride, SiriKit may send an
INGet object to your extension first to verify that a ride is still active and to retrieve the associated ride identifier. It includes that ride identifier in the
INCancel object that it sends to your Intents extension.
SiriKit prefers sending an
INCancel object to your extension over canceling a ride by other means. So when responding to an
INRequest object, you can continue to set the
user property of your response’s
INRide object to allow cancellation of the ride in your app. SiriKit uses that
NSUser object only on systems where the cancellation intent is unavailable or not supported by your extension.