ApplyAdapter

interface ApplyAdapter<N>
androidx.compose.ApplyAdapter

An adapter that performs tree based operations on some tree startNode N without requiring a specific base type for N

Summary

Public methods

abstract Unit
N.end(instance: N, parent: N)

abstract Unit
N.insertAt(index: Int, instance: N)

abstract Unit
N.move(from: Int, to: Int, count: Int)

abstract Unit
N.removeAt(index: Int, count: Int)

abstract Unit
N.start(instance: N)

Public methods

end

abstract fun N.end(
    instance: N,
    parent: N
): Unit

insertAt

abstract fun N.insertAt(
    index: Int,
    instance: N
): Unit

move

abstract fun N.move(
    from: Int,
    to: Int,
    count: Int
): Unit

removeAt

abstract fun N.removeAt(
    index: Int,
    count: Int
): Unit

start

abstract fun N.start(instance: N): Unit