Android 12 Developer Preview is here! Try it out, and give us your feedback!

ComplicationOutlineRenderer

class ComplicationOutlineRenderer
kotlin.Any
   ↳ androidx.wear.watchface.ComplicationOutlineRenderer

Helper for rendering a thick outline around a complication. Intended for use with LayerMode#DRAW_OUTLINED.

Summary

Public constructors

Helper for rendering a thick outline around a complication.

Companion functions
Unit
drawComplicationSelectOutline(canvas: Canvas, bounds: Rect, @ColorInt color: Int)

Draws a thick line around the complication with the given bounds.

Public constructors

<init>

ComplicationOutlineRenderer()

Helper for rendering a thick outline around a complication. Intended for use with LayerMode#DRAW_OUTLINED.

Companion functions

drawComplicationSelectOutline

@JvmStatic fun drawComplicationSelectOutline(
    canvas: Canvas,
    bounds: Rect,
    @ColorInt color: Int
): Unit

Draws a thick line around the complication with the given bounds.