DrawMode
enum DrawMode : 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 functions |
|
|---|---|
DrawMode |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Array<DrawMode> |
This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public properties |
|
|---|---|
EnumEntries<DrawMode> |
This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Enum Values
AMBIENT
val DrawMode.AMBIENT: DrawMode
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.INTERACTIVE: DrawMode
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_INTERACTIVE: DrawMode
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.MUTE: DrawMode
This mode is used when there's an interruption filter. The watch face should look muted.
Public functions
valueOf
funvalueOf(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
funvalues(): 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.
The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using entries property as a more efficient alternative returning an immutable list of enum entries.
Public properties
entries
val entries: EnumEntries<DrawMode>
Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.