confirm(getAvailableRestaurantReservationBookingDefaults:completion:)
Confirms whether you can return default values.
Declaration
optional func confirm(getAvailableRestaurantReservationBookingDefaults intent: INGetAvailableRestaurantReservationBookingDefaultsIntent, completion: @escaping @Sendable (INGetAvailableRestaurantReservationBookingDefaultsIntentResponse) -> Void)optional func confirm(getAvailableRestaurantReservationBookingDefaults intent: INGetAvailableRestaurantReservationBookingDefaultsIntent) async -> INGetAvailableRestaurantReservationBookingDefaultsIntentResponseParameters
- intent:
The intent object containing details about the request. The information in this object has already been resolved by your handler object.
- 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 Ingetavailablerestaurantreservationbookingdefaultsintentresponse object containing the status of whether your app is able to return default values. This parameter must not be
nil.
Discussion
Implement this method to validate you can provide default restaurant information.