O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

SnapshotStateList

@Stable class SnapshotStateList<T> : MutableList<T>, StateObject
kotlin.Any
   ↳ androidx.compose.runtime.snapshots.SnapshotStateList

An implementation of MutableList that can be observed and snapshot. This is the result type created by androidx.compose.runtime.mutableStateListOf.

This class closely implements the same semantics as ArrayList.

Summary

Public constructors

An implementation of MutableList that can be observed and snapshot.

Public methods
Boolean
add(element: T)

Unit
add(index: Int, element: T)

Boolean
addAll(index: Int, elements: Collection<T>)

Boolean
addAll(elements: Collection<T>)

Unit

Boolean
contains(element: T)

Boolean
containsAll(elements: Collection<T>)

T
get(index: Int)

Int
indexOf(element: T)

Boolean

MutableIterator<T>

Int
lastIndexOf(element: T)

MutableListIterator<T>

MutableListIterator<T>
listIterator(index: Int)

Unit

Add a new state record to the beginning of a list.

Boolean
remove(element: T)

Boolean
removeAll(elements: Collection<T>)

T
removeAt(index: Int)

Unit
removeRange(fromIndex: Int, toIndex: Int)

Boolean
retainAll(elements: Collection<T>)

T
set(index: Int, element: T)

MutableList<T>
subList(fromIndex: Int, toIndex: Int)

Inherited functions
Inherited extension functions
From androidx.wear.complications.data.kotlin.collections.Collection <
IntArray

Converts an array of ComplicationType to an array of integers with the corresponding wire types.