Protocol

INGetRestaurantGuestIntentHandling

The handler interface for fetching information about the person making a reservation.

Overview

Use the methods of the INGetRestaurantGuestIntentHandling protocol to confirm and handle requests to return information about the person making a reservation. The system delivers an INGetRestaurantGuestIntent object to your handler when the user begins the process of making a reservation. Your handler object should return information about the current user along with preferences about how the system should display that user’s information. Your handler is also responsible for specifying whether the user information displayed by the system can be changed before it is assigned to the reservation.

Maps does not require you to confirm the contents of a get restaurant guest 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

func handle(getRestaurantGuest: INGetRestaurantGuestIntent, completion: (INGetRestaurantGuestIntentResponse) -> Void)

Called when it is time for you to return information about the user making the reservation.

Required.

Confirming the Response

func confirm(getRestaurantGuest: INGetRestaurantGuestIntent, completion: (INGetRestaurantGuestIntentResponse) -> Void)

Called when it is time for you to confirm whether you can provide the guest information.

Relationships

Inherits From

See Also

Get Restaurant Guest

class INGetRestaurantGuestIntent

A request for information about the guest who is making reservations.

class INGetRestaurantGuestIntentResponse

Your app’s response to a get restaurant guest intent.