public enum WatchfaceMode extends java.lang.Enum<WatchfaceMode>
Enum Constant and Description |
---|
ANALOG |
CONNECT_IQ |
DIGITAL |
DISABLED |
INVALID |
Modifier and Type | Field and Description |
---|---|
protected short |
value |
Modifier and Type | Method and Description |
---|---|
static WatchfaceMode |
getByValue(java.lang.Short value) |
static java.lang.String |
getStringFromValue(WatchfaceMode value)
Retrieves the String Representation of the Value
|
short |
getValue() |
static WatchfaceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WatchfaceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WatchfaceMode DIGITAL
public static final WatchfaceMode ANALOG
public static final WatchfaceMode CONNECT_IQ
public static final WatchfaceMode DISABLED
public static final WatchfaceMode INVALID
public static WatchfaceMode[] values()
for (WatchfaceMode c : WatchfaceMode.values()) System.out.println(c);
public static WatchfaceMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static WatchfaceMode getByValue(java.lang.Short value)
public static java.lang.String getStringFromValue(WatchfaceMode value)
value
- The enum constantpublic short getValue()