Class

INGetVisualCodeIntentResponse

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

Declaration

class INGetVisualCodeIntentResponse : INIntentResponse

Overview

Use an INGetVisualCodeIntentResponse object to provide the visual code to display. When handling the intent, provide an image with the requested visual code. Siri communicates the details back to the user at appropriate times.

You create an INGetVisualCodeIntentResponse object in the confirm(intent:completion:) and handle(intent:completion:) methods of your handler object. For more information about implementing your handler object, see INGetVisualCodeIntentHandling.

Topics

Initializing the Response Object

init(code: INGetVisualCodeIntentResponseCode, userActivity: NSUserActivity?)

Initializes the response object with the specified code and user activity object.

Getting the Response Code

var code: INGetVisualCodeIntentResponseCode

The code indicating whether you successfully handled the intent.

enum INGetVisualCodeIntentResponseCode

Constants indicating the state of the response.

Providing the Code Image

var visualCodeImage: INImage?

The image containing the visual code.

Relationships

Inherits From

Conforms To

See Also

Get Visual Code

protocol INGetVisualCodeIntentHandling

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

class INGetVisualCodeIntent

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