{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

MutableFloatState

@<Error class: unknown class>
public interface MutableFloatState extends FloatState, MutableState


A value holder where reads to the floatValue property during the execution of a Composable function cause the current RecomposeScope to subscribe to changes of that value. When the floatValue property is written to and changed, a recomposition of any subscribed RecomposeScopes will be scheduled. If floatValue is written to with the same value, no recompositions will be scheduled.

See also
FloatState
mutableDoubleStateOf

Summary

Public methods

abstract float
default float
@AutoboxingStateValueProperty(preferredPropertyName = "floatValue")
getValue()
abstract void
setFloatValue(float floatValue)
default void
@AutoboxingStateValueProperty(preferredPropertyName = "floatValue")
setValue(float value)

Extension functions

default final void
SnapshotFloatStateKt.setValue(
    @NonNull MutableFloatState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    float value
)

Permits property delegation of vars using by for MutableFloatState.

Inherited methods

From androidx.compose.runtime.MutableState
abstract float
abstract @NonNull Function1<@NonNull FloatUnit>

Public methods

getFloatValue

abstract float getFloatValue()

getValue

@AutoboxingStateValueProperty(preferredPropertyName = "floatValue")
default float getValue()

setFloatValue

abstract void setFloatValue(float floatValue)

setValue

@AutoboxingStateValueProperty(preferredPropertyName = "floatValue")
default void setValue(float value)

Extension functions

SnapshotFloatStateKt.setValue

default final void SnapshotFloatStateKt.setValue(
    @NonNull MutableFloatState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    float value
)

Permits property delegation of vars using by for MutableFloatState.