An intent requesting the cancellation of a previously booked ride.
- iOS 11.0+
- Mac Catalyst 13.0+
When the user cancels a ride that was previously booked through Siri or Maps, SiriKit sends an
INCancel object to your handler. SiriKit populates this intent object with the ride identifier that you provided when originally booking the ride. Upon receiving this intent, verify the ride information and cancel the ride accordingly.
To handle this intent, the handler object in your Intents extension must adopt the
INCancel protocol. Your handler should confirm the request and create an
INCancel object with the status of the ride.
SiriKit prefers sending this intent 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 this intent is unavailable or not supported by your extension.
Additional Intent Attributes
Table 1 lists additional attributes of this intent object.
Always requires unlocked device