CompletedShapeRenderer


public interface CompletedShapeRenderer<CompletedShapeT extends Object>


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

Summary

Public methods

default boolean
@UiThread
changesWithTime(@NonNull CompletedShapeT shape)

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

abstract void
@UiThread
draw(
    @NonNull Canvas canvas,
    @NonNull CompletedShapeT shape,
    @NonNull Matrix strokeToScreenTransform,
    long systemElapsedTimeMillis
)

Public methods

changesWithTime

Added in 1.0.0-beta02
@UiThread
default boolean changesWithTime(@NonNull CompletedShapeT shape)

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
abstract void draw(
    @NonNull Canvas canvas,
    @NonNull CompletedShapeT shape,
    @NonNull Matrix strokeToScreenTransform,
    long systemElapsedTimeMillis
)