# ResponseResultCodes

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.ResponseResultCodes) Added in [1.0.1](https://developer.android.com/jetpack/androidx/releases/tracing#1.0.1)

*** ** * ** ***


```
public static class ResponseResultCodes
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_ALREADY_ENABLED() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_CANCELLED() = 0` Indicates that the broadcast resulted in `result=0`, which is an equivalent of `https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED`. |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_ERROR_BINARY_MISSING() = 11` Required version described in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#requiredVersion()`. |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR() = 13` Could be a result of a stale version of the binary cached locally. |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH() = 12` Required version described in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#requiredVersion()`. |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_ERROR_OTHER() = 99` More specific information in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#message()` |
| `static final int` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#RESULT_CODE_SUCCESS() = 1` |

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes` | `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/ResponseResultCodes#INSTANCE()` |

## Constants

### RESULT_CODE_ALREADY_ENABLED

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

```
public static final int RESULT_CODE_ALREADY_ENABLED = 2
```

### RESULT_CODE_CANCELLED

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

```
public static final int RESULT_CODE_CANCELLED = 0
```

Indicates that the broadcast resulted in `result=0`, which is an equivalent of `https://developer.android.com/reference/android/app/Activity.html#RESULT_CANCELED`.

This most likely means that the app does not expose a `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/PerfettoSdkHandshake` compatible receiver.

### RESULT_CODE_ERROR_BINARY_MISSING

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

```
public static final int RESULT_CODE_ERROR_BINARY_MISSING = 11
```

Required version described in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#requiredVersion()`. A follow-up `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/PerfettoSdkHandshake#enableTracingImmediate(androidx.tracing.perfetto.handshake.PerfettoSdkHandshake.LibrarySource)` request expected with binaries to sideload specified.

### RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR

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

```
public static final int RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR = 13
```

Could be a result of a stale version of the binary cached locally. Retrying with a freshly downloaded library likely to fix the issue. More specific information in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#message()`

### RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH

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

```
public static final int RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH = 12
```

Required version described in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#requiredVersion()`.

### RESULT_CODE_ERROR_OTHER

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

```
public static final int RESULT_CODE_ERROR_OTHER = 99
```

More specific information in `https://developer.android.com/reference/androidx/tracing/perfetto/handshake/protocol/Response#message()`

### RESULT_CODE_SUCCESS

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

```
public static final int RESULT_CODE_SUCCESS = 1
```

## Public fields

### INSTANCE

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

```
public static @NonNull ResponseResultCodes INSTANCE
```