RenderParameters.HighlightLayer


class RenderParameters.HighlightLayer


The definition of what to include in the highlight layer.

The highlight layer is used by editors to show the parts of the watch face affected by a setting. E.g. a set of ComplicationSlots or a user style setting.

The highlight layer is composited on top of the watch face with an alpha blend. It should be cleared with backgroundTint. The solid or semi-transparent outline around highlightedElement should be rendered using the provided highlightTint. The highlighted element itself should be rendered as fully transparent (an alpha value of 0) to leave it unaffected.

Summary

Public constructors

HighlightLayer(
    highlightedElement: RenderParameters.HighlightedElement,
    highlightTint: @ColorInt Int,
    backgroundTint: @ColorInt Int
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Int

The tint to apply to everything other than highlightedElement.

Int

The highlight tint to apply to highlightedElement.

RenderParameters.HighlightedElement

The HighlightedElement to draw highlighted with highlightTint.

Public constructors

HighlightLayer

Added in 1.0.0
HighlightLayer(
    highlightedElement: RenderParameters.HighlightedElement,
    highlightTint: @ColorInt Int,
    backgroundTint: @ColorInt Int
)
Parameters
highlightedElement: RenderParameters.HighlightedElement

The HighlightedElement to draw highlighted with highlightTint.

highlightTint: @ColorInt Int

The highlight tint to apply to highlightedElement.

backgroundTint: @ColorInt Int

The tint to apply to everything other than highlightedElement. Typically this will darken everything else to increase contrast.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

backgroundTint

Added in 1.0.0
val backgroundTintInt

The tint to apply to everything other than highlightedElement. Typically this will darken everything else to increase contrast.

highlightTint

Added in 1.0.0
val highlightTintInt

The highlight tint to apply to highlightedElement.

highlightedElement

Added in 1.0.0
val highlightedElementRenderParameters.HighlightedElement

The HighlightedElement to draw highlighted with highlightTint.