# StateInfo

# StateInfo

Artifact:[androidx.metrics:metrics-performance](https://developer.android.com/jetpack/androidx/releases/metrics)  
[View Source](https://cs.android.com/search?q=file:androidx/metrics/performance/FrameData.kt+class:androidx.metrics.performance.StateInfo)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/metrics#1.0.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/metrics/performance/StateInfo "View this page in Java")

<br />

```
class StateInfo
```

<br />

*** ** * ** ***

This class contains information about application state.

## Summary

|                                                                                                                                                      ### Public constructors                                                                                                                                                      |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [StateInfo](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#StateInfo(kotlin.String,kotlin.String))`(key: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`, value: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`)` |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#toString())`()`                                                                                            |

|                               ### Public properties                               |
|-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [key](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#key()) An arbitrary name used for this state, used as a key for storing the state value. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [value](https://developer.android.com/reference/kotlin/androidx/metrics/performance/StateInfo#value()) The value of this state.                                                      |

## Public constructors

### StateInfo

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

```
StateInfo(key: String, value: String)
```  

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```  

### hashCode

```
open fun hashCode(): Int
```  

### toString

```
open fun toString(): String
```  

## Public properties

### key

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

```
val key: String
```

An arbitrary name used for this state, used as a key for storing the state value.  

### value

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

```
val value: String
```

The value of this state.