Protocol

INGetVisualCodeIntentHandling

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

Declaration

@protocol INGetVisualCodeIntentHandling

Overview

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.

Topics

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.

Required.

Relationships

Inherits From

See Also

Get Visual Code

INGetVisualCodeIntent

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

INGetVisualCodeIntentResponse

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