Stay organized with collections
Save and categorize content based on your preferences.
@ExperimentalInkCustomShapeWorkflowApi
public interface CompletedShapeRenderer<CompletedShapeT extends Object>
Called to render a CompletedShapeT instance to an android.graphics.Canvas.
Summary
Public methods |
default boolean |
Whether calls to draw with a new timestamp value results in different visual output.
|
abstract void |
Draw an instance of CompletedShapeT to a Canvas.
|
Public methods
@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.
@UiThread
abstract void draw(
@NonNull Canvas canvas,
@NonNull CompletedShapeT shape,
@NonNull Matrix strokeToScreenTransform,
long animatorClockStateMillis
)
Draw an instance of CompletedShapeT to a Canvas.
| Parameters |
@NonNull Canvas canvas |
The output Canvas to draw to.
|
@NonNull CompletedShapeT shape |
The object to be drawn.
|
@NonNull Matrix strokeToScreenTransform |
The full transform that has already been applied to the Canvas in order to draw this object. Most implementations do not need to use this data, but it is provided for certain rare circumstances (such as analytical anti-aliasing) that require it.
|
long animatorClockStateMillis |
The current timestamp to be used for animation calculations. Note that the animation timing may not proceed at the same rate as system elapsed time - it will by default, but may be paused and resumed, or sped up, or slowed down.
|
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-07-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-07-15 UTC."],[],[]]