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

MutableDoubleState

public interface MutableDoubleState extends DoubleState, MutableState


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

See also
DoubleState
mutableDoubleStateOf

Summary

Public methods

abstract double
default double
@AutoboxingStateValueProperty(preferredPropertyName = "doubleValue")
getValue()
abstract void
setDoubleValue(double doubleValue)
default void
@AutoboxingStateValueProperty(preferredPropertyName = "doubleValue")
setValue(double value)

Extension functions

default final void
SnapshotDoubleStateKt.setValue(
    @NonNull MutableDoubleState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    double value
)

Permits property delegation of vars using by for MutableDoubleState.

Inherited methods

From androidx.compose.runtime.MutableState
abstract double
abstract @NonNull Function1<@NonNull DoubleUnit>

Public methods

getDoubleValue

abstract double getDoubleValue()

getValue

@AutoboxingStateValueProperty(preferredPropertyName = "doubleValue")
default double getValue()

setDoubleValue

abstract void setDoubleValue(double doubleValue)

setValue

@AutoboxingStateValueProperty(preferredPropertyName = "doubleValue")
default void setValue(double value)

Extension functions

SnapshotDoubleStateKt.setValue

default final void SnapshotDoubleStateKt.setValue(
    @NonNull MutableDoubleState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    double value
)

Permits property delegation of vars using by for MutableDoubleState.