The handler interface for displaying your app’s visual codes.


@protocol INGetVisualCodeIntentHandling


Use the methods of the INGetVisualCodeIntentHandling protocol to resolve, confirm, and handle requests to display visual codes such as QR codes. Adopt this protocol in an object of your Intents extension that is capable of displaying an image representing the code.

Siri delivers an INGetVisualCodeIntent object to your handler when the user asks your app to display a relevant visual code. The provided intent object contains information about the type of code to display. Use the methods of this protocol to resolve the account information and display the corresponding image.


Resolving the Intent Parameters

- resolveVisualCodeTypeForGetVisualCode:withCompletion:

Resolves the type of code requested by the user.

Confirming the Response

- confirmGetVisualCode:completion:

Confirms whether you can provide the requested visual code.

Handling the Intent

- handleGetVisualCode:completion:

Handles providing the image for the specified visual code.



Inherits From

See Also

Get Visual Code


A request for a visual code to use for exchanging payment and contact information.


Your app’s response to a request for a visual code.

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