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

VectorApplier

class VectorApplier : AbstractApplier<VNode>
kotlin.Any
   ↳ androidx.compose.runtime.AbstractApplier<androidx.compose.ui.graphics.vector.VNode>
   ↳ androidx.compose.ui.graphics.vector.VectorApplier

Summary

Public constructors
<init>(root: VNode)

Public methods
Unit
insert(index: Int, instance: VNode)

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

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

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

Unit
remove(index: Int, count: Int)

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

Protected methods
Unit

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

Inherited functions
Inherited properties

Public constructors

<init>

VectorApplier(root: VNode)

Public methods

insert

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

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

move

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

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

The to index is related to the position before the change, so, for example, to move an element at position 1 to after the element at position 2, from should be 1 and to should be 3. If the elements were A B C D E, calling move(1, 3, 1) would result in the elements being reordered to A C B D E.

remove

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

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

Protected methods

onClear

protected fun onClear(): Unit

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