ReceivedKeyedAppState
abstract class ReceivedKeyedAppState
kotlin.Any | |
↳ | androidx.enterprise.feedback.ReceivedKeyedAppState |
A keyed app state received from an app. This contains all of the information added by the app to the KeyedAppState
as well as the packageName and timestamp added when the state was received.
Summary
Nested classes |
|
---|---|
abstract |
The builder for |
Public methods |
|
---|---|
open static ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder |
builder() Create a |
abstract String? |
getData() |
abstract String |
getKey() |
abstract String? | |
abstract String |
The name of the package which submitted the states. |
abstract Int | |
abstract Long |
The unix timestamp, in milliseconds, when the states were received. |
Public methods
builder
@NonNull open static fun builder(): ReceivedKeyedAppState.ReceivedKeyedAppStateBuilder
Create a ReceivedKeyedAppStateBuilder
.
getPackageName
@NonNull 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.
getTimestamp
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.