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

MutableIntState

@<Error class: unknown class>
public interface MutableIntState extends IntState, MutableState


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. When the intValue property is written to and changed, a recomposition of any subscribed RecomposeScopes will be scheduled. If intValue is written to with the same value, no recompositions will be scheduled.

See also
IntState
mutableDoubleStateOf

Summary

Public methods

abstract int
default int
@AutoboxingStateValueProperty(preferredPropertyName = "intValue")
getValue()
abstract void
setIntValue(int intValue)
default void
@AutoboxingStateValueProperty(preferredPropertyName = "intValue")
setValue(int value)

Extension functions

default final void
SnapshotIntStateKt.setValue(
    @NonNull MutableIntState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    int value
)

Permits property delegation of vars using by for MutableIntState.

Inherited methods

From androidx.compose.runtime.MutableState
abstract int
abstract @NonNull Function1<@NonNull IntegerUnit>

Public methods

getIntValue

abstract int getIntValue()

getValue

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

setIntValue

abstract void setIntValue(int intValue)

setValue

@AutoboxingStateValueProperty(preferredPropertyName = "intValue")
default void setValue(int value)

Extension functions

SnapshotIntStateKt.setValue

default final void SnapshotIntStateKt.setValue(
    @NonNull MutableIntState receiver,
    Object thisObj,
    @NonNull KProperty<@NonNull ?> property,
    int value
)

Permits property delegation of vars using by for MutableIntState.