Google is committed to advancing racial equity for Black communities. See how.

UiApplier

class UiApplier : AbstractApplier<Any>
kotlin.Any
   ↳ androidx.compose.runtime.AbstractApplier<kotlin.Any>
   ↳ androidx.compose.ui.node.UiApplier

Summary

Public constructors
<init>(root: Any)

Public methods
Unit
insertBottomUp(index: Int, instance: Any)

Indicates that instance should be inserted as a child of current at index.

Unit
insertTopDown(index: Int, instance: Any)

Indicates that instance should be inserted as a child to current at index.

Unit
move(from: Int, to: Int, count: Int)

Indicates that count children of current should be moved from index from to index to.

Unit

Called when the Composer is finished applying changes using this applier.

Unit
remove(index: Int, count: Int)

Indicates that the children of current from index to index + count should be removed.

Unit
up()

Indicates that the applier is getting traversed "up" the tree.

Protected methods
Unit

Called to perform clearing of the root when clear is called.

Inherited functions
Inherited properties

Public constructors

<init>

UiApplier(root: Any)

Public methods

insertBottomUp

fun insertBottomUp(
    index: Int,
    instance: Any
): Unit

Indicates that instance should be inserted as a child of current at index. An applier should insert the node into the tree either in insertTopDown or insertBottomUp, not both. See the description of insertTopDown to which describes when to implement insertTopDown and when to use