# FloatState

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

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

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableFloatState` | A value holder where reads to the `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MutableFloatState#floatValue()` 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/FloatState#floatValue()` 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/MutableFloatState` |   |
| `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/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/FloatState#floatValue()` | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/FloatState#value()` | Cmn |

| ### Extension functions |
|---|---|---|
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/FloatState.https://developer.android.com/reference/kotlin/androidx/compose/runtime/FloatState#(androidx.compose.runtime.FloatState).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/FloatState`. | Cmn |

## Public properties

### floatValue

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

```
val floatValue: Float
```

### value

Cmn

```
open val value: Float
```

## Extension functions

### FloatState.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/SnapshotFloatState.kt+function:getValue)

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

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