# LongState

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/SnapshotLongState.kt+class:androidx.compose.runtime.LongState) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.5.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  interface LongState : State<Long>
  ```
Known direct subclasses [MutableLongState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState` | A value holder where reads to the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState#longValue()` property during the execution of a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable` function cause the current `https://developer.android.com/reference/kotlin/androidx/compose/runtime/RecomposeScope` to subscribe to changes of that value. |

*** ** * ** ***

A value holder where reads to the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState#longValue()` property during the execution of a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable` function cause the current `https://developer.android.com/reference/kotlin/androidx/compose/runtime/RecomposeScope` to subscribe to changes of that value.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#mutableDoubleStateOf(kotlin.Double)` |   |

## Summary

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState#longValue()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState#value()` | Cmn |

| ### Extension functions |
|---|---|---|
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState.https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState#(androidx.compose.runtime.LongState).getValue(kotlin.Any,kotlin.reflect.KProperty)(thisObj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?, property: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.reflect/-k-property/index.html<*>)` Permits property delegation of `val`s using `by` for `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState`. | Cmn |

## Public properties

### longValue

Cmn Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.5.0)

```
val longValue: Long
```

### value

Cmn

```
open val value: Long
```

## Extension functions

### LongState.getValue

Cmn Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/SnapshotLongState.kt+function:getValue)

```
inline operator fun LongState.getValue(thisObj: Any?, property: KProperty<*>): Long
```

Permits property delegation of `val`s using `by` for `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState`.