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

LayerMode

enum class LayerMode
kotlin.Any
   ↳ kotlin.Enum<androidx.wear.watchface.LayerMode>
   ↳ androidx.wear.watchface.LayerMode

Used to parameterize per layer drawing.

Summary

Enum values

This layer should be rendered normally.

Used by editors, this layer should be rendered with a outline or similar graphical highlighting with RenderParameters.outlineTint.

This layer should not be drawn.

Inherited extension functions
From androidx.core.util
infix Range<T>
T.rangeTo(that: T)

Creates a range from this Comparable value to that.

Enum values

DRAW

enum val DRAW : LayerMode

This layer should be rendered normally.

DRAW_OUTLINED

enum val DRAW_OUTLINED : LayerMode

Used by editors, this layer should be rendered with a outline or similar graphical highlighting with RenderParameters.outlineTint. See also RenderParameters.selectedComplicationId for use in combination with Layer.COMPLICATIONS.

Note a highlight for background complications won't be drawn since this would typically be off screen.

HIDE

enum val HIDE : LayerMode

This layer should not be drawn.