ViewTreeRenderer

Transactional renderer that reconciles immutable VNodes into one Android ViewGroup.

Calls are UI-thread confined. The caller owns the host and must pass the exact mounted-node list returned by its previous successful render. Structural and binding mutations are rolled back when preparation fails; deferred lifecycle callbacks run only after the new View tree commits.

Functions

Link copied to clipboard

Disposes mounted subtrees and removes their root Views from container.

Link copied to clipboard
fun renderInto(container: ViewGroup, previous: List<MountedNode>, nodes: List<VNode>, collectDiagnostics: Boolean = true, onReconcile: (RenderTreeResult) -> Unit? = null): RenderTreeResult

Reconciles nodes into container and commits one new mounted-tree snapshot.

Link copied to clipboard

Clears process-local warning de-duplication state used by renderer tests.