[android-components](../../index.md) / [mozilla.components.ui.progress](../index.md) / [AnimatedProgressBar](index.md) / [onDraw](./on-draw.md)

# onDraw

`protected open fun onDraw(canvas: `[`Canvas`](https://developer.android.com/reference/android/graphics/Canvas.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/ui/progress/src/main/java/mozilla/components/ui/progress/AnimatedProgressBar.kt#L67)