---
title: INGetVisualCodeIntentResponse
framework: intents
role: symbol
role_heading: Class
path: intents/ingetvisualcodeintentresponse
---

# INGetVisualCodeIntentResponse

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

## Declaration

```swift
class INGetVisualCodeIntentResponse
```

## Overview

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:userActivity:)](intents/ingetvisualcodeintentresponse/init(code:useractivity:).md)

### Getting the Response Code

- [code](intents/ingetvisualcodeintentresponse/code.md)
- [INGetVisualCodeIntentResponseCode](intents/ingetvisualcodeintentresponsecode.md)

### Providing the Code Image

- [visualCodeImage](intents/ingetvisualcodeintentresponse/visualcodeimage.md)

## Relationships

### Inherits From

- [INIntentResponse](intents/inintentresponse.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Visual Codes

- [INGetVisualCodeIntentHandling](intents/ingetvisualcodeintenthandling.md)
- [INGetVisualCodeIntent](intents/ingetvisualcodeintent.md)
