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


class INGetRestaurantGuestIntentResponse : INIntentResponse


An INGetRestaurantGuestIntentResponse object contains the information about the current user along with preferences about whether that user should be associated with any new reservations. You create this response when handling or confirming an INGetUserCurrentRestaurantReservationBookingsIntent object. Your response should contain information about the current user and information about how that user’s information should be displayed in the interface used to make reservations.

You create an INGetRestaurantGuestIntentResponse object in the confirm(getRestaurantGuest:completion:) and handle(getRestaurantGuest:completion:) methods of handler object. For more information about implementing your handler object, see INGetRestaurantGuestIntentHandling.


Initializing the Response Object

init(code: INGetRestaurantGuestIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INGetRestaurantGuestIntentResponseCode

The code indicating whether you successfully handled the intent.

Specifying the Response Details

var guest: INRestaurantGuest?

The identity of the person making the reservation.

var guestDisplayPreferences: INRestaurantGuestDisplayPreferences?

The options for specifying how you want guest information conveyed to the user.


enum INGetRestaurantGuestIntentResponseCode

Constants indicating the state of the response.


Inherits From

Conforms To

See Also

Get Restaurant Guest

protocol INGetRestaurantGuestIntentHandling

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

class INGetRestaurantGuestIntent

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