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

Confirming the Response

Handling the Intent

func handle(intent: INGetVisualCodeIntent, completion: (INGetVisualCodeIntentResponse) -> Void)

Handles providing the image for the specified visual code.



Inherits From

See Also

Get Visual Code

class INGetVisualCodeIntent

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

class INGetVisualCodeIntentResponse

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