WatchFaceLayer

enum WatchFaceLayer : Enum


Describes part of watchface. Used as a parameter for rendering.

Summary

Enum Values

BASE

The watch excluding complications and anything that may render on top of complications.

COMPLICATIONS

The watch face complications.

COMPLICATIONS_OVERLAY

Any parts of the watch that may render on top of complications, e.g. watch hands.

Public companion properties

Set<WatchFaceLayer>

A Set of all WatchFaceLayers.

Public functions

WatchFaceLayer
valueOf(value: String)

Returns the enum constant of this type with the specified name.

Array<WatchFaceLayer>

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

BASE

val WatchFaceLayer.BASEWatchFaceLayer

The watch excluding complications and anything that may render on top of complications.

COMPLICATIONS

val WatchFaceLayer.COMPLICATIONSWatchFaceLayer

The watch face complications.

COMPLICATIONS_OVERLAY

val WatchFaceLayer.COMPLICATIONS_OVERLAYWatchFaceLayer

Any parts of the watch that may render on top of complications, e.g. watch hands.

Public companion properties

ALL_WATCH_FACE_LAYERS

val ALL_WATCH_FACE_LAYERSSet<WatchFaceLayer>

A Set of all WatchFaceLayers.

Public functions

valueOf

Added in 1.0.0
fun valueOf(value: String): WatchFaceLayer

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

Added in 1.0.0
fun values(): Array<WatchFaceLayer>

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.