# InProgressShapeRenderer

Artifact: [androidx.ink:ink-authoring](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/authoring/InProgressShapeRenderer.kt+class:androidx.ink.authoring.InProgressShapeRenderer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

*** ** * ** ***


```
@ExperimentalInkCustomShapeWorkflowApi
public interface InProgressShapeRenderer<InProgressShapeT extends InProgressShape<@NonNull ?, @NonNull ?>>
```

<br />

*** ** * ** ***

Implement this interface to render an `https://developer.android.com/reference/androidx/ink/authoring/InProgressShape`.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/ink/authoring/InProgressShapeRenderer#draw(android.graphics.Canvas,androidx.ink.authoring.InProgressShape,android.graphics.Matrix)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas, @https://developer.android.com/reference/androidx/annotation/NonNull InProgressShapeT shape, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Matrix.html strokeToScreenTransform )` Draw the given `https://developer.android.com/reference/androidx/ink/authoring/InProgressShape` onto the provided `https://developer.android.com/reference/android/graphics/Canvas.html`, with the given transform. |

## Public methods

### draw

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/ink#1.0.0)

```
abstract void draw(
    @NonNull Canvas canvas,
    @NonNull InProgressShapeT shape,
    @NonNull Matrix strokeToScreenTransform
)
```

Draw the given `https://developer.android.com/reference/androidx/ink/authoring/InProgressShape` onto the provided `https://developer.android.com/reference/android/graphics/Canvas.html`, with the given transform. This will be called on the render thread.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Canvas.html canvas` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to draw to. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull InProgressShapeT shape` | The `https://developer.android.com/reference/androidx/ink/authoring/InProgressShape` to draw. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Matrix.html strokeToScreenTransform` | A `https://developer.android.com/reference/android/graphics/Matrix.html` to transform the `https://developer.android.com/reference/androidx/ink/authoring/InProgressShape` from its local coordinate space to the screen coordinate space. |