# 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)

*** ** * ** ***


```
public final class Response
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#getMessage()()` |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#getRequiredVersion()()` 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. |
| `final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#getResultCode()()` |

## Public methods

### getMessage

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

```
public final String getMessage()
```

### getRequiredVersion

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

```
public final String getRequiredVersion()
```

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/androidx/tracing/perfetto/handshake/protocol/Response#(kotlin.Int,kotlin.String,kotlin.String)` or `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#(kotlin.Int,kotlin.String,kotlin.String)` properties.

### getResultCode

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

```
public final int getResultCode()
```