<div class='sourceset sourceset-android'>Android</div>

```kotlin
public class MutableRemoteFloat
internal constructor(
    internal override val cacheKey: RemoteStateCacheKey,
    private var idProvider: (creationState: RemoteComposeCreationState) -> Float,
) : RemoteFloat(), MutableRemoteState<Float>
```

A mutable implementation of [RemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteFloat). It also implements [MutableRemoteState<Float>].

## Secondary Constructors

```kotlin
internal constructor() :
    this(
        cacheKey = RemoteStateInstanceKey(),
        idProvider = { creationState -> creationState.document.reserveFloatVariable() },
    )
```

```kotlin
internal constructor(
    id: Int
) : this(cacheKey = RemoteStateIdKey(id), idProvider = { asNan(id) })
```

```kotlin
internal constructor(
    initialValue: Float
) : this(
    cacheKey = RemoteStateInstanceKey(),
    idProvider = { creationState -> creationState.document.addFloatConstant(initialValue) },
)
```

## Companion Object

#### Methods

<h2 id="createmutable-initialvalue">createMutable</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
public fun createMutable(initialValue: Float): MutableRemoteFloat
```

Creates a new mutable state (allocates an ID).

#### Parameters

| | |
| --- | --- |
| initialValue | The initial value for the state. |

#### Returns

| | |
| --- | --- |
|  | A new [MutableRemoteFloat](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/MutableRemoteFloat) instance. |