Protocol

INBookRestaurantReservationIntentHandling

Handles the booking of a reservation that the user selected.

Overview

Use the methods of the INBookRestaurantReservationIntentHandling protocol to resolve, confirm, and handle requests to book a reservation based on the provided information. The system delivers an INBookRestaurantReservationIntent object to your handler with the reservation details, including the restaurant, date, party size, and any special offers selected by the user. Use that intent object to complete the reservation in your system and to communicate the reservation details to the restaurant itself.

Maps does not require you to resolve or confirm the contents of a get available restaurant reservation bookings 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.

Topics

Handling the Intent

Confirming the Response

Resolving the Intent Parameters

func resolveRestaurant(for: INBookRestaurantReservationIntent, completion: (INRestaurantResolutionResult) -> Void)

Called when it is time for you to resolve the restaurant associated with the reservation.

func resolvePartySize(for: INBookRestaurantReservationIntent, completion: (INIntegerResolutionResult) -> Void)

Called when it is time for you to resolve the number of people in the user’s party.

func resolveGuest(for: INBookRestaurantReservationIntent, completion: (INRestaurantGuestResolutionResult) -> Void)

Called when it is time for you to resolve the identity of the guest associated with the reservation.

func resolveGuestProvidedSpecialRequestText(for: INBookRestaurantReservationIntent, completion: (INStringResolutionResult) -> Void)

Called when it is time for you to resolve any special requests made in connection with the reservation.

Relationships

Inherits From

See Also

Book Restaurant Reservation

class INBookRestaurantReservationIntent

Requests the creation of a reservation at the specified restaurant.

class INBookRestaurantReservationIntentResponse

Contains your app’s response to a book restaurant reservation intent.