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

CanvasHolder

class CanvasHolder
kotlin.Any
   ↳ androidx.ui.graphics.CanvasHolder

Holder class that is used to issue scoped calls to a Canvas from the framework equivalent canvas without having to allocate an object on each draw call

Summary

Public constructors

Holder class that is used to issue scoped calls to a Canvas from the framework equivalent canvas without having to allocate an object on each draw call

Public methods
Unit
drawInto(targetCanvas: Canvas, block: Canvas.() -> Unit)

Public constructors

<init>

CanvasHolder()

Holder class that is used to issue scoped calls to a Canvas from the framework equivalent canvas without having to allocate an object on each draw call

Public methods

drawInto

inline fun drawInto(
    targetCanvas: Canvas,
    block: Canvas.() -> Unit
): Unit