Applier

class Applier<N>
kotlin.Any
   ↳ androidx.compose.Applier

A helper class to apply changes to a tree with startNode types N given an apply adapter for type N

Summary

Public constructors

<init>(root: N, adapter: ApplyAdapter<N>)

A helper class to apply changes to a tree with startNode types N given an apply adapter for type N

Public methods

Unit
down(node: N)

Unit
insert(index: Int, instance: N)

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

Unit
remove(index: Int, count: Int)

Unit

Unit
up()

Properties

N

Public constructors

<init>

Applier(
    root: N,
    adapter: ApplyAdapter<N>)

A helper class to apply changes to a tree with startNode types N given an apply adapter for type N

Public methods

down

fun down(node: N): Unit

insert

fun insert(
    index: Int,
    instance: N
): Unit

move

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

remove

fun remove(
    index: Int,
    count: Int
): Unit

reset

fun reset(): Unit

up

fun up(): Unit

Properties

current

val current: N