INRequestRideIntentHandling

INRequestRideIntentHandling

INRequestRideIntentHandling Protocol of Intents The handler interface for booking a ride for the user.

protocol INRequestRideIntentHandling : NSObjectProtocol

Overview

Use the methods of the INRequestRideIntentHandling protocol to resolve, confirm, and handle requests to book a ride using your service. Adopt this protocol in an object of your Intents extension that is capable of initiating the booking process with your service. SiriKit calls the methods of your object to resolve the parameters to your ride-related information and to book the ride upon confirmation by the user.

Ride requests have many items to resolve. You should resolve all options in some manner, but you may omit options that are not relevant to your service. For example, if your service transports cargo instead of passengers, you might ignore the party size option. For ride requests, you must resolve the following items:

  • Pickup location
  • Drop-off location
  • Party size
  • Ride option
  • Payment method

Note: Maps does not require you to confirm the contents of a get ride status intent before handling it. User interactions drive the selection of data in Maps, ensuring that the data Maps places into an intent object is already valid.