# ReceivedKeyedAppState

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/enterprise/feedback/ReceivedKeyedAppState "View this page in Java")

<br />

```
@AutoValue
abstract class ReceivedKeyedAppState
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                                        ### Public functions                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `java-static `[ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder) | [builder](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#builder())`()` Create a[ReceivedKeyedAppStateBuilder](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder). |
| `abstract `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`                                                                                                    | [getData](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getData())`()` See[getData](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppState#getData())                                                       |
| `abstract `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                       | [getKey](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getKey())`()` See[getKey](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppState#getKey())                                                           |
| `abstract `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?`                                                                                                    | [getMessage](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getMessage())`()` See[getMessage](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppState#getMessage())                                           |
| `abstract `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                                                       | [getPackageName](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getPackageName())`()` The name of the package which submitted the states.                                                                                                       |
| `abstract `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                             | [getSeverity](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getSeverity())`()` See[getSeverity](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/KeyedAppState#getSeverity())                                       |
| `abstract `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                                                                           | [getTimestamp](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState#getTimestamp())`()` The unix timestamp, in milliseconds, when the states were received.                                                                                           |

## Public functions

### builder

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

```
java-static fun builder(): ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder
```

Create a[ReceivedKeyedAppStateBuilder](https://developer.android.com/reference/kotlin/androidx/enterprise/feedback/ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder).  

### getData

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

```
abstract fun getData(): String?
```

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

### getKey

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

```
abstract fun getKey(): String
```

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

### getMessage

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

```
abstract fun getMessage(): String?
```

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

### getPackageName

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

```
abstract fun getPackageName(): String
```

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)  

```
abstract fun getSeverity(): Int
```

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

### getTimestamp

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

```
abstract fun getTimestamp(): Long
```

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.