CompletedShapeRenderer


@ExperimentalInkCustomShapeWorkflowApi
public interface CompletedShapeRenderer<CompletedShapeT extends Object>

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

Summary

Public methods

changesWithTime

Added in 1.0.0
@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
@UiThread
abstract void draw(
 @NonNull Canvas canvas,
 @NonNull CompletedShapeT shape,
 @NonNull Matrix strokeToScreenTransform,
 long animatorClockStateMillis
)

Draw an instance of CompletedShapeT to a Canvas.