{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

CacheDrawModifierNode

public sealed interface CacheDrawModifierNode extends DrawModifierNode


Expands on the androidx.compose.ui.node.DrawModifierNode by adding the ability to invalidate the draw cache for changes in things like shapes and bitmaps (see Modifier.border for a usage examples).

Summary

Public methods

abstract void

Inherited methods

From androidx.compose.ui.node.DelegatableNode
abstract @NonNull Modifier.Node

A reference of the Modifier.Node that holds this node's position in the node hierarchy.

From androidx.compose.ui.node.DrawModifierNode
abstract void
default void

Public methods

invalidateDrawCache

abstract void invalidateDrawCache()