Instance Method

confirmGetVisualCode:completion:

Confirms whether you can provide the requested visual code.

Declaration

- (void)confirmGetVisualCode:(INGetVisualCodeIntent *)intent completion:(void (^)(INGetVisualCodeIntentResponse *response))completion;

Parameters

intent

The intent object containing details about the user's request. The properties of this object have 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. 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 are 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.