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

LongState

public interface LongState extends State

Known direct subclasses
MutableLongState

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.


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.

See also
MutableLongState
mutableDoubleStateOf

Summary

Public methods

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

Extension functions

default final long
SnapshotLongStateKt.getValue(
    @NonNull LongState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property
)

Permits property delegation of vals using by for LongState.

Public methods

getLongValue

abstract long getLongValue()

getValue

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

Extension functions

SnapshotLongStateKt.getValue

default final long SnapshotLongStateKt.getValue(
    @NonNull LongState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property
)

Permits property delegation of vals using by for LongState.