public enum DrawMode extends 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 methods

final @NonNull EnumEntries<@NonNull DrawMode>

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

final @NonNull DrawMode

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

final @NonNull DrawMode[]

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

Enum Values

AMBIENT

DrawMode DrawMode.AMBIENT

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

DrawMode DrawMode.INTERACTIVE

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

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

DrawMode DrawMode.MUTE

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

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull DrawModegetEntries()

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.

valueOf

Added in 1.0.0
public final @NonNull DrawMode valueOf(@NonNull String value)

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
public final @NonNull DrawMode[] values()

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.