enum DrawMode : Enum


Summary

Enum Values

AMBIENT

In this mode as few pixels as possible should be turned on, ideally with darker colors.

INTERACTIVE

This mode is used when the user is interacting with the watch face.

LOW_BATTERY_INTERACTIVE

This mode is used when the user is interacting with the watch face but the battery is low, the watch face should render fewer pixels, ideally with darker colors.

MUTE

This mode is used when there's an interruption filter.

Public functions

DrawMode
valueOf(value: String)

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

Array<DrawMode>

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

Public properties

EnumEntries<DrawMode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Enum Values

AMBIENT

val DrawMode.AMBIENTDrawMode

In this mode as few pixels as possible should be turned on, ideally with darker colors.

Typically watch faces switch to a simplified display when in ambient mode. E.g. if the watch face displays seconds, it should hide them in ambient mode.

Note: In ambient mode the watch face will be rendered once per minute.

INTERACTIVE

val DrawMode.INTERACTIVEDrawMode

This mode is used when the user is interacting with the watch face.

This is currently the only mode that is supported when editing the watch face.

LOW_BATTERY_INTERACTIVE

val DrawMode.LOW_BATTERY_INTERACTIVEDrawMode

This mode is used when the user is interacting with the watch face but the battery is low, the watch face should render fewer pixels, ideally with darker colors.

MUTE

val DrawMode.MUTEDrawMode

This mode is used when there's an interruption filter. The watch face should look muted.

Public functions

valueOf

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

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<DrawMode>

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.

Public properties

entries

val entriesEnumEntries<DrawMode>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.