DrawMode
public enum DrawMode extends Enum
Summary
Enum Values |
|
|---|---|
AMBIENT |
This enum value is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
INTERACTIVE |
This enum value is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
LOW_BATTERY_INTERACTIVE |
This enum value is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
MUTE |
This enum value is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public methods |
|
|---|---|
final @NonNull EnumEntries<@NonNull DrawMode> |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final @NonNull DrawMode |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
final @NonNull DrawMode[] |
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
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 DrawMode>getEntries()
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
public final @NonNull DrawModevalueOf(@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 |