# ComplicationHighlightRenderer

Artifact: [androidx.wear.watchface:watchface-complications-rendering](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer.kt+class:androidx.wear.watchface.complications.rendering.ComplicationHighlightRenderer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***


```
public final class ComplicationHighlightRenderer
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Helper for rendering a thick outline around a complication to highlight it.

use Watch Face Format instead

## Summary

| ### Public constructors |
|---|
| `[ComplicationHighlightRenderer](https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer#ComplicationHighlightRenderer(kotlin.Float,kotlin.Float))( @https://developer.android.com/reference/androidx/annotation/Px float outlineExpansion, @https://developer.android.com/reference/androidx/annotation/Px float outlineStrokeWidth )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `final void` | `[drawComplicationHighlight](https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer#drawComplicationHighlight(android.graphics.Canvas,android.graphics.Rect,kotlin.Int))( @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 https://developer.android.com/reference/android/graphics/Rect.html bounds, @https://developer.android.com/reference/androidx/annotation/ColorInt int color )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### ComplicationHighlightRenderer

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public [ComplicationHighlightRenderer](https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer#ComplicationHighlightRenderer(kotlin.Float,kotlin.Float))(
    @Px float outlineExpansion,
    @Px float outlineStrokeWidth
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

## Public methods

### drawComplicationHighlight

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final void [drawComplicationHighlight](https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer#drawComplicationHighlight(android.graphics.Canvas,android.graphics.Rect,kotlin.Int))(
    @NonNull Canvas canvas,
    @NonNull Rect bounds,
    @ColorInt int color
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Intended for use by `https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/CanvasComplicationDrawable#drawHighlight(android.graphics.Canvas,android.graphics.Rect,kotlin.Int,java.time.ZonedDateTime,kotlin.Int)`. Draws a thick line around the complication with `https://developer.android.com/reference/androidx/wear/watchface/complications/rendering/ComplicationHighlightRenderer#drawComplicationHighlight(android.graphics.Canvas,android.graphics.Rect,kotlin.Int)` and with the given bounds. Fills the center of the complication with transparent white. When composited on top of the underlying watchface the complication's original pixels will be preserved with their original brightness.