CanvasRenderer
Kotlin
|Java
abstract class CanvasRenderer : Renderer
kotlin.Any | ||
↳ | androidx.wear.watchface.Renderer | |
↳ | androidx.wear.watchface.Renderer.CanvasRenderer |
Watch faces that require Canvas rendering should extend their Renderer from this class.
Summary
Public constructors | |
---|---|
<init>(surfaceHolder: SurfaceHolder, userStyleRepository: UserStyleRepository, watchState: WatchState, canvasType: Int, @IntRange(0, 10000) interactiveDrawModeUpdateDelayMillis: Long) Watch faces that require Canvas rendering should extend their Renderer from this class. |
Public methods | |
---|---|
abstract Unit |
Sub-classes should override this to implement their rendering logic which should respect the current DrawMode. |
Inherited functions | |
---|---|
Inherited properties | |
---|---|
Public constructors
<init>
CanvasRenderer(
surfaceHolder: SurfaceHolder,
userStyleRepository: UserStyleRepository,
watchState: WatchState,
canvasType: Int,
@IntRange(0, 10000) interactiveDrawModeUpdateDelayMillis: Long)
Watch faces that require Canvas rendering should extend their Renderer from this class.
Public methods
render
@UiThread abstract fun render(