# 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
interface InProgressShapeRenderer<InProgressShapeT : InProgressShape<*, *>>
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/authoring/InProgressShapeRenderer#draw(android.graphics.Canvas,androidx.ink.authoring.InProgressShape,android.graphics.Matrix)( canvas: https://developer.android.com/reference/android/graphics/Canvas.html, shape: InProgressShapeT, strokeToScreenTransform: https://developer.android.com/reference/android/graphics/Matrix.html )` Draw the given `https://developer.android.com/reference/kotlin/androidx/ink/authoring/InProgressShape` onto the provided `https://developer.android.com/reference/android/graphics/Canvas.html`, with the given transform. |

## Public functions

### draw

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

```
fun draw(
    canvas: Canvas,
    shape: InProgressShapeT,
    strokeToScreenTransform: Matrix
): Unit
```

Draw the given `https://developer.android.com/reference/kotlin/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 |
|---|---|
| `canvas: https://developer.android.com/reference/android/graphics/Canvas.html` | The `https://developer.android.com/reference/android/graphics/Canvas.html` to draw to. |
| `shape: InProgressShapeT` | The `https://developer.android.com/reference/kotlin/androidx/ink/authoring/InProgressShape` to draw. |
| `strokeToScreenTransform: https://developer.android.com/reference/android/graphics/Matrix.html` | A `https://developer.android.com/reference/android/graphics/Matrix.html` to transform the `https://developer.android.com/reference/kotlin/androidx/ink/authoring/InProgressShape` from its local coordinate space to the screen coordinate space. |