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

IntState

@<Error class: unknown class>
public interface IntState extends State

Known direct subclasses
MutableIntState

A value holder where reads to the intValue 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 intValue property during the execution of a Composable function cause the current RecomposeScope to subscribe to changes of that value.

See also
MutableIntState
mutableDoubleStateOf

Summary

Public methods

abstract int
default int
@AutoboxingStateValueProperty(preferredPropertyName = "intValue")
getValue()

Extension functions

default final int
SnapshotIntStateKt.getValue(
    @NonNull IntState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property
)

Permits property delegation of vals using by for IntState.

Public methods

getIntValue

abstract int getIntValue()

getValue

@AutoboxingStateValueProperty(preferredPropertyName = "intValue")
default int getValue()

Extension functions

SnapshotIntStateKt.getValue

default final int SnapshotIntStateKt.getValue(
    @NonNull IntState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property
)

Permits property delegation of vals using by for IntState.