# ReceivedKeyedAppState

Artifact: [androidx.enterprise:enterprise-feedback](https://developer.android.com/jetpack/androidx/releases/enterprise) [View Source](https://cs.android.com/search?q=file:androidx/enterprise/feedback/ReceivedKeyedAppState.java+class:androidx.enterprise.feedback.ReceivedKeyedAppState) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/enterprise#1.0.0)

*** ** * ** ***


```
@AutoValue
public abstract class ReceivedKeyedAppState
```

<br />

*** ** * ** ***

A keyed app state received from an app. This contains all of the information added by the app to the `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState` as well as the packageName and timestamp added when the state was received.

## Summary

| ### Nested types |
|---|
| `@https://www.javadoc.io/doc/com.google.auto.value/auto-value/latest/com/google/auto/value/AutoValue.Builder.html public abstract class https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` The builder for `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState`. |

| ### Public methods |
|---|---|
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#builder()()` Create a `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder`. |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getData()()` See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getData()` |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getKey()()` See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getKey()` |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getMessage()()` See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getMessage()` |
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getPackageName()()` The name of the package which submitted the states. |
| `abstract int` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getSeverity()()` See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getSeverity()` |
| `abstract long` | `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState#getTimestamp()()` The unix timestamp, in milliseconds, when the states were received. |

## Public methods

### builder

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

```
public static @NonNull ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder builder()
```

Create a `https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder`.

### getData

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

```
public abstract @Nullable String getData()
```

See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getData()`

### getKey

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

```
public abstract @NonNull String getKey()
```

See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getKey()`

### getMessage

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

```
public abstract @Nullable String getMessage()
```

See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getMessage()`

### getPackageName

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

```
public abstract @NonNull String getPackageName()
```

The name of the package which submitted the states.

This is automatically set to the correct value by the receiver; it is NOT self-reported by the app sending the feedback.

### getSeverity

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

```
public abstract int getSeverity()
```

See `https://developer.android.com/reference/androidx/enterprise/feedback/KeyedAppState#getSeverity()`

### getTimestamp

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

```
public abstract long getTimestamp()
```

The unix timestamp, in milliseconds, when the states were received.

This is automatically set to the correct value by the receiver; it is NOT self-reported by the app sending the feedback.