Instance Method

handleGetVisualCode:completion:

Handles providing the image for the specified visual code.

Required.

Declaration

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

Parameters

intent

The intent object containing details about the user's request. The information in this object has already been resolved and confirmed 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 INGetVisualCodeIntentResponse object containing the status of the request. This parameter must not be nil.

Discussion

Your implementation of this method should create an image for the requested visual code. Place that image in your response object and call the provided handler block.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software