Instance Method

handleListRideOptions:completion:

Handles providing the list of ride options.

Required.

Declaration

- (void)handleListRideOptions:(INListRideOptionsIntent *)intent completion:(void (^)(INListRideOptionsIntentResponse *response))completion;

Parameters

intent

The intent object containing details of the request. Use the information in this object to identify available ride options for the user.

completion

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:

response

The INListRideOptionsIntentResponse object containing the ride options available to the user. This parameter must not be nil.

Discussion

In your implementation of this method, compile a list of available ride options and create INRideOption objects for each one. Ride option names must be unique so that you can correctly identify the selected option later. Put the ride options into your response object and call the provided completion block with the results.

For more information about configuring ride options, see INRideOption.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software