Handles providing the image for the specified visual code.
Required.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
Framework
- Intents
Declaration
- (void)handleGetVisualCode:(INGet Visual Code Intent *)intent completion:(void (^)(INGet Visual Code Intent Response *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
INGet
object containing the status of the request. This parameter must not beVisual Code Intent Response 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.