confirm(intent:completion:)
Confirms whether you can provide the requested visual code.
Declaration
optional func confirm(intent: INGetVisualCodeIntent, completion: @escaping @Sendable (INGetVisualCodeIntentResponse) -> Void)optional func confirm(intent: INGetVisualCodeIntent) async -> INGetVisualCodeIntentResponseParameters
- intent:
The intent object containing details about the user’s request. Your handler object has already resolved the properties of this object.
- completion:
The handler block to execute with your response. You must execute this handler at some point during your implementation of this method. The handler has no return value and takes the following parameter:
- response
The Ingetvisualcodeintentresponse object containing the details to confirm with the user. This parameter must not be
nil.
Discussion
Implement this method to verify that you’re able to produce the requested visual code. You might use this method to verify the user’s account credentials and verify that their account can handle the specified type of transaction.
At some point in your implementation, execute the provided handler block with a response object containing the status of whether you can provide the code. For more information about creating the response object, see INGetVisualCodeIntentResponse.