class MutableRemoteFloat : RemoteFloat, MutableRemoteState


A mutable implementation of RemoteFloat. It also implements MutableRemoteState.

Summary

Public companion functions

MutableRemoteFloat
createMutable(initialValue: Float)

Creates a new mutable state (allocates an ID).

Public properties

open Float?

The constant value or null if there isn't one.

Inherited functions

From androidx.compose.remote.creation.compose.state.RemoteFloat
operator RemoteFloat

Returns a new RemoteFloat that evaluates to this RemoteFloat div v.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is equal to the value of this RemoteFloat or false otherwise.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is greater than or equal to the value of this RemoteFloat or false otherwise.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is greater than the value of this RemoteFloat or false otherwise.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is less than or equal to the value of this RemoteFloat or false otherwise.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is less than the value of this RemoteFloat or false otherwise.

RemoteFloat

Returns a new RemoteFloat that evaluates to minimum of this RemoteFloat and v.

operator RemoteFloat

Returns a new RemoteFloat that evaluates to this RemoteFloat minus v.

infix RemoteBoolean

Returns a RemoteBoolean that evaluates to true if b is not equal to the value of this RemoteFloat or false otherwise.

operator RemoteFloat

Returns a new RemoteFloat that evaluates to this RemoteFloat plus v.

operator RemoteFloat

Returns a new RemoteFloat that evaluates to this RemoteFloat modulo v.

operator RemoteFloat

Returns a new RemoteFloat that evaluates to this RemoteFloat times v.

RemoteInt

Returns a RemoteInt that evaluates to the result of this RemoteFloat converted to Int.

RemoteString

Returns a RemoteString that evaluates to the result of this RemoteFloat formatted according to the provided DecimalFormat.

RemoteString
toRemoteString(before: Int, after: Int, flags: Int)

Returns a RemoteString that converts the result of this RemoteFloat with specified formatting.

operator RemoteFloat

Returns a new RemoteFloat that evaluates to the negative of this RemoteFloat.

Inherited properties

From androidx.compose.remote.creation.compose.state.RemoteState
open Float

The constant value held by this state.

open Boolean

Whether or not this remote state evaluates to a constant value.

Public companion functions

createMutable

Added in 1.0.0-alpha07
fun createMutable(initialValue: Float): MutableRemoteFloat

Creates a new mutable state (allocates an ID).

Parameters
initialValue: Float

The initial value for the state.

Returns
MutableRemoteFloat

A new MutableRemoteFloat instance.

Public properties

constantValueOrNull

open val constantValueOrNullFloat?

The constant value or null if there isn't one.