Contents

confirm(intent:completion:)

Confirms that you can provide a list of the user’s electric vehicles.

Declaration

optional func confirm(intent: INListCarsIntent, completion: @escaping  @Sendable (INListCarsIntentResponse) -> Void)
optional func confirm(intent: INListCarsIntent) async -> INListCarsIntentResponse

Parameters

  • intent:

    The intent object that represents the request.

  • completion:

    The block you call with your response. You must call this block within your implementation of this method and pass an instance of Inlistcarsintentresponse that contains the appropriate status code.

Discussion

Implement this method to confirm that you can provide a list of the user’s electric vehicles.

Perform any processing that your app requires to retrieve a list of the user’s electric vehicles, and then create a response object with a status code that indicates your app’s readiness to handle the intent. You must then call the completion block and pass the response.