public static enum Complication.Type extends java.lang.Enum<Complication.Type>
SystemCapability.Wearable#COMPLICATION| 枚举常量 | 说明 |
|---|---|
LARGE |
Long string
|
LAUNCHER |
Launcher
|
LIST |
List data
|
NO_DATA |
No data
|
RANGED |
Ranged data
|
SIMPLE |
Simple data
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getType() |
Obtains an integer that represents the complication type.
|
static Complication.Type |
getValue(int type) |
Obtains an enumerated constant of
Complication.Type based on an integer that represents the
complication type. |
static Complication.Type |
valueOf(java.lang.String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Complication.Type[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Complication.Type c : Complication.Type.values()) System.out.println(c); |
public static final Complication.Type NO_DATA
public static final Complication.Type LAUNCHER
public static final Complication.Type SIMPLE
public static final Complication.Type RANGED
public static final Complication.Type LARGE
public static final Complication.Type LIST
public static Complication.Type[] values()
for (Complication.Type c : Complication.Type.values()) System.out.println(c);
public static Complication.Type valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public int getType()
The matching between the complication type and integer is as follows:
TYPE_NO_DATA = 0, TYPE_LAUNCHER = 1, TYPE_SIMPLE = 2, TYPE_RANGED = 3,
TYPE_LARGE = 4, and TYPE_LIST = 5
public static Complication.Type getValue(int type)
Complication.Type based on an integer that represents the
complication type.type - Indicates the integer that represents the complication type.Complication.Type.