# MutableLongState

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.MutableLongState) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.5.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  interface MutableLongState : LongState, MutableState<Long>
  ```

*** ** * ** ***

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. When the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState#longValue()` property is written to and changed, a recomposition of any subscribed `https://developer.android.com/reference/kotlin/androidx/compose/runtime/RecomposeScope`s will be scheduled. If `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState#longValue()` is written to with the same value, no recompositions will be scheduled.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/LongState` |   |
| `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/MutableLongState#longValue()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState#value()` | Cmn |

| ### Extension functions |
|---|---|---|
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState.https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState#(androidx.compose.runtime.MutableLongState).setValue(kotlin.Any,kotlin.reflect.KProperty,kotlin.Long)( 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<*>, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` Permits property delegation of `var`s using `by` for `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableLongState`. | Cmn |

### Inherited functions

From [androidx.compose.runtime.MutableState](https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState) `operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState#component1()()` Cmn `operator (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableState#component2()()` Cmn

## Public properties

### longValue

Cmn

```
var longValue: Long
```

### value

Cmn

```
open var value: Long
```

## Extension functions

### MutableLongState.setValue

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:setValue)

```
inline operator fun MutableLongState.setValue(
    thisObj: Any?,
    property: KProperty<*>,
    value: Long
): Unit
```

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