ResponseResultCodes


public static class ResponseResultCodes


Summary

Constants

static final int
static final int

Indicates that the broadcast resulted in result=0, which is an equivalent of android.app.Activity.RESULT_CANCELED.

static final int

Required version described in Response.requiredVersion.

static final int

Could be a result of a stale version of the binary cached locally.

static final int

Required version described in Response.requiredVersion.

static final int

More specific information in Response.message

static final int

Public fields

static @NonNull ResponseResultCodes

Constants

RESULT_CODE_ALREADY_ENABLED

Added in 1.0.0
public static final int RESULT_CODE_ALREADY_ENABLED = 2

RESULT_CODE_CANCELLED

Added in 1.0.0
public static final int RESULT_CODE_CANCELLED = 0

Indicates that the broadcast resulted in result=0, which is an equivalent of android.app.Activity.RESULT_CANCELED.

This most likely means that the app does not expose a PerfettoSdkHandshake compatible receiver.

RESULT_CODE_ERROR_BINARY_MISSING

Added in 1.0.0
public static final int RESULT_CODE_ERROR_BINARY_MISSING = 11

Required version described in Response.requiredVersion. A follow-up androidx.tracing.perfetto.handshake.PerfettoSdkHandshake.enableTracingImmediate request expected with binaries to sideload specified.

RESULT_CODE_ERROR_BINARY_VERIFICATION_ERROR

Added in 1.0.0
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 Response.message

RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH

Added in 1.0.0
public static final int RESULT_CODE_ERROR_BINARY_VERSION_MISMATCH = 12

Required version described in Response.requiredVersion.

RESULT_CODE_ERROR_OTHER

Added in 1.0.0
public static final int RESULT_CODE_ERROR_OTHER = 99

More specific information in Response.message

RESULT_CODE_SUCCESS

Added in 1.0.0
public static final int RESULT_CODE_SUCCESS = 1

Public fields

INSTANCE

Added in 1.0.0
public static @NonNull ResponseResultCodes INSTANCE