---
title: code
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insearchformediaintentresponse/code
---

# code

A response code that indicates whether the app successfully searched for the media.

## Declaration

```swift
var code: INSearchForMediaIntentResponseCode { get }
```

## See Also

### Providing the Response Code

- [INSearchForMediaIntentResponseCode](intents/insearchformediaintentresponsecode.md)
