Class

INGetVisualCodeIntentResponse

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

Declaration

@interface 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 confirmGetVisualCode:completion: and handleGetVisualCode:completion: methods of your handler object. For more information about implementing your handler object, see INGetVisualCodeIntentHandling.

Topics

Initializing the Response Object

- initWithCode:userActivity:

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

Getting the Response Code

code

The code indicating whether you successfully handled the intent.

INGetVisualCodeIntentResponseCode

Constants indicating the state of the response.

Providing the Code Image

visualCodeImage

The image containing the visual code.

Relationships

Inherits From

See Also

Get Visual Code

INGetVisualCodeIntentHandling

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

INGetVisualCodeIntent

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

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