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

MutableLongState

public interface MutableLongState extends LongState, MutableState


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

See also
LongState
mutableDoubleStateOf

Summary

Public methods

abstract long
default long
@AutoboxingStateValueProperty(preferredPropertyName = "longValue")
getValue()
abstract void
setLongValue(long longValue)
default void
@AutoboxingStateValueProperty(preferredPropertyName = "longValue")
setValue(long value)

Extension functions

default final void
SnapshotLongStateKt.setValue(
    @NonNull MutableLongState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    long value
)

Permits property delegation of vars using by for MutableLongState.

Inherited methods

From androidx.compose.runtime.MutableState
abstract long
abstract @NonNull Function1<@NonNull LongUnit>

Public methods

getLongValue

abstract long getLongValue()

getValue

@AutoboxingStateValueProperty(preferredPropertyName = "longValue")
default long getValue()

setLongValue

abstract void setLongValue(long longValue)

setValue

@AutoboxingStateValueProperty(preferredPropertyName = "longValue")
default void setValue(long value)

Extension functions

SnapshotLongStateKt.setValue

default final void SnapshotLongStateKt.setValue(
    @NonNull MutableLongState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    long value
)

Permits property delegation of vars using by for MutableLongState.