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

android

Public functions

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

Public constructors

CanvasHolder

CanvasHolder()

Public functions

drawInto

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