AbstractApplier

abstract class AbstractApplier<T>(root: T) : Applier<T>

An abstract Applier implementation.

Samples

androidx.compose.runtime.samples.CustomTreeComposition

See also

Constructors

AbstractApplier
Link copied to clipboard
common
fun <T> AbstractApplier(root: T)

Functions

clear
Link copied to clipboard
common
override fun clear()
Move to the root and remove all nodes from the root, preparing both this Applier and its root to be used as the target of a new composition in the future.
down
Link copied to clipboard
common
open override fun down(node: T)
Indicates that the applier is getting traversed "down" the tree.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
insertBottomUp
Link copied to clipboard
common
abstract fun insertBottomUp(index: Int, instance: T)
Indicates that instance should be inserted as a child of current at index.
insertTopDown
Link copied to clipboard
common
abstract fun insertTopDown(index: Int, instance: T)
Indicates that instance should be inserted as a child to current at index.
move
Link copied to clipboard
common
abstract fun move(from: Int, to: Int, count: Int)
Indicates that count children of current should be moved from index from to index to.
onBeginChanges
Link copied to clipboard
common
open fun onBeginChanges()
Called when the Composer is about to begin applying changes using this applier.
onEndChanges
Link copied to clipboard
common
open fun onEndChanges()
Called when the Composer is finished applying changes using this applier.
remove
Link copied to clipboard
common
abstract fun remove(index: Int, count: Int)
Indicates that the children of current from index to index + count should be removed.
toString
Link copied to clipboard
common
open fun toString(): String
up
Link copied to clipboard
common
open override fun up()
Indicates that the applier is getting traversed "up" the tree.

Properties

current
Link copied to clipboard
common
open override var current: T
The node that operations will be applied on at any given time.
root
Link copied to clipboard
common
val root: T