# Response

Artifact: [androidx.tracing:tracing-perfetto-handshake](https://developer.android.com/jetpack/androidx/releases/tracing) [View Source](https://cs.android.com/search?q=file:androidx/tracing/perfetto/handshake/protocol/Protocol.kt+class:androidx.tracing.perfetto.handshake.protocol.Response) Added in [1.0.1](https://developer.android.com/jetpack/androidx/releases/tracing#1.0.1)

*** ** * ** ***


```
class Response
```

<br />

*** ** * ** ***

## Summary

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/tracing/perfetto/handshake/protocol/Response#message()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `https://developer.android.com/reference/kotlin/androidx/tracing/perfetto/handshake/protocol/Response#requiredVersion()` This can be `null` iff we cannot communicate with the broadcast receiver of the target process (e.g. app does not offer Perfetto tracing) or if we cannot parse the response from the receiver. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/tracing/perfetto/handshake/protocol/Response#resultCode()` |

## Public properties

### message

Added in [1.0.1](https://developer.android.com/jetpack/androidx/releases/tracing#1.0.1)

```
val message: String?
```

### requiredVersion

Added in [1.0.1](https://developer.android.com/jetpack/androidx/releases/tracing#1.0.1)

```
val requiredVersion: String?
```

This can be `null` iff we cannot communicate with the broadcast receiver of the target process (e.g. app does not offer Perfetto tracing) or if we cannot parse the response from the receiver. In either case, tracing is unlikely to work under these circumstances, and more context on how to proceed can be found in `https://developer.android.com/reference/kotlin/androidx/tracing/perfetto/handshake/protocol/Response#(kotlin.Int,kotlin.String,kotlin.String)` or `https://developer.android.com/reference/kotlin/androidx/tracing/perfetto/handshake/protocol/Response#(kotlin.Int,kotlin.String,kotlin.String)` properties.

### resultCode

Added in [1.0.1](https://developer.android.com/jetpack/androidx/releases/tracing#1.0.1)

```
val resultCode: Int
```

Value is one of the following:

- `0`
- `1`
- `2`
- `11`
- `12`
- `13`
- `99`

<br />