Start native apps faster with the Composables CLI ->
Class

CanvasOp.SaveRestore

Represents a save/restore group (corresponding to RemoteComposeWriter.save and RemoteComposeWriter.restore).

Source set: Android
class SaveRestore(
        val parent: SaveRestore? = null,
        val children: MutableList<CanvasOp> = ArrayList(),
    ) : CanvasOp()

Represents a save/restore group (corresponding to RemoteComposeWriter.save and RemoteComposeWriter.restore).

Properties

hasDrawCalls

Source set: Android
var hasDrawCalls = false

Indicates whether this scope or any of its descendants contain actual drawing calls. Used during the elision pass to discard empty scopes.

elisionMode

Source set: Android
var elisionMode = ElisionMode.PRESERVE

The elision strategy decided for this scope during the elision pass.

spanOp

Source set: Android
var spanOp: CanvasOperationBuffer.SpanOp?

isTopLevel

Source set: Android
var isTopLevel = false

Functions

getRootSaveNode

fun getRootSaveNode(): SaveRestore

hasChildTransformsOrClips

fun hasChildTransformsOrClips(): Boolean

Last updated: