confirm(getRestaurantGuest:completion:)
Confirms whether you can provide the guest information.
Declaration
optional func confirm(getRestaurantGuest guestIntent: INGetRestaurantGuestIntent, completion: @escaping @Sendable (INGetRestaurantGuestIntentResponse) -> Void)optional func confirm(getRestaurantGuest guestIntent: INGetRestaurantGuestIntent) async -> INGetRestaurantGuestIntentResponseParameters
- guestIntent:
The intent object describing the request.
- 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 Ingetrestaurantguestintentresponse object containing the status of whether your app is able to return information about the current user. This parameter must not be
nil.
Discussion
Implement this method to validate that you can return the current user’s information. At some point in your implementation, execute the provided completion block with a response object.