CompletedShapeRenderer


interface CompletedShapeRenderer<CompletedShapeT : Any>


Called to render a CompletedShapeT instance to an android.graphics.Canvas.

Summary

Public functions

open Boolean
@UiThread
changesWithTime(shape: CompletedShapeT)

Whether calls to draw with a new timestamp value results in different visual output.

Unit
@UiThread
draw(
    canvas: Canvas,
    shape: CompletedShapeT,
    strokeToScreenTransform: Matrix,
    systemElapsedTimeMillis: Long
)

Public functions

changesWithTime

Added in 1.0.0-beta02
@UiThread
open fun changesWithTime(shape: CompletedShapeT): Boolean

Whether calls to draw with a new timestamp value results in different visual output. In other words, return true if and only if shape is animated.

draw

Added in 1.0.0-beta02
@UiThread
fun draw(
    canvas: Canvas,
    shape: CompletedShapeT,
    strokeToScreenTransform: Matrix,
    systemElapsedTimeMillis: Long
): Unit