public static enum ComplicationTemplate.Type extends java.lang.Enum<ComplicationTemplate.Type>
SystemCapability.Wearable#COMPLICATION| 枚举常量 | 说明 |
|---|---|
EMPTY |
Indicates a template that contains no data.
|
ICON_DIGIT |
Indicates a template that contains an icon and numeric data.
|
ICON_LARGE |
Indicates a template that contains an icon and a long text string.
|
ICON_LIST |
Indicates a template that contains an icon and list data.
|
ICON_RANGED |
Indicates a template that contains an icon and ranged data.
|
ICON_TEXT |
Indicates a template that contains an icon and text data.
|
ICON_TITLE_DIGIT |
Indicates a template that contains an icon, a title and numeric data.
|
ICON_TITLE_LARGE |
Indicates a template that contains an icon, a title and a long text string.
|
ICON_TITLE_LIST |
Indicates a template that contains an icon, a title and list data.
|
ICON_TITLE_RANGED |
Indicates a template that contains an icon, a title and ranged data.
|
ICON_TITLE_TEXT |
Indicates a template that contains an icon, a title and text data.
|
LAUNCHER_ICON |
Indicates a template that contains a launcher icon.
|
TITLE_DIGIT |
Indicates a template that contains a title and numeric data.
|
TITLE_LARGE |
Indicates a template that contains a title and a long text string.
|
TITLE_LIST |
Indicates a template that contains a title and list data.
|
TITLE_RANGED |
Indicates a template that contains a title and ranged value.
|
TITLE_TEXT |
Indicates a template that contains a title and text data.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
java.lang.String |
getType() |
Obtains the complication template type.
|
static ComplicationTemplate.Type |
getValue(java.lang.String type) |
Obtains an enumerated constant of
ComplicationTemplate.Type based on the complication template type. |
static ComplicationTemplate.Type |
valueOf(java.lang.String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static ComplicationTemplate.Type[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (ComplicationTemplate.Type c : ComplicationTemplate.Type.values()) System.out.println(c); |
public static final ComplicationTemplate.Type EMPTY
public static final ComplicationTemplate.Type LAUNCHER_ICON
public static final ComplicationTemplate.Type ICON_TEXT
public static final ComplicationTemplate.Type ICON_DIGIT
public static final ComplicationTemplate.Type TITLE_TEXT
public static final ComplicationTemplate.Type TITLE_DIGIT
public static final ComplicationTemplate.Type ICON_TITLE_DIGIT
public static final ComplicationTemplate.Type ICON_TITLE_TEXT
public static final ComplicationTemplate.Type ICON_RANGED
public static final ComplicationTemplate.Type TITLE_RANGED
public static final ComplicationTemplate.Type ICON_TITLE_RANGED
public static final ComplicationTemplate.Type ICON_LARGE
public static final ComplicationTemplate.Type TITLE_LARGE
public static final ComplicationTemplate.Type ICON_TITLE_LARGE
public static final ComplicationTemplate.Type ICON_LIST
public static final ComplicationTemplate.Type TITLE_LIST
public static final ComplicationTemplate.Type ICON_TITLE_LIST
public static ComplicationTemplate.Type[] values()
for (ComplicationTemplate.Type c : ComplicationTemplate.Type.values()) System.out.println(c);
public static ComplicationTemplate.Type valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public java.lang.String getType()
The return value is one of the following strings defined in ComplicationTemplate:
TEMPLATE_EMPTY, TEMPLATE_LAUNCHER_ICON,
TEMPLATE_ICON_TEXT, TEMPLATE_ICON_DIGIT, TEMPLATE_TITLE_TEXT, TEMPLATE_TITLE_DIGIT,
TEMPLATE_ICON_TITLE_DIGIT, TEMPLATE_ICON_TITLE_TEXT,
TEMPLATE_ICON_RANGED, TEMPLATE_TITLE_RANGED, TEMPLATE_ICON_TITLE_RANGED
TEMPLATE_ICON_LARGE, TEMPLATE_TITLE_LARGE, TEMPLATE_ICON_TITLE_LARGE
TEMPLATE_ICON_LIST, TEMPLATE_TITLE_LIST, TEMPLATE_ICON_TITLE_LIST
public static ComplicationTemplate.Type getValue(java.lang.String type)
ComplicationTemplate.Type based on the complication template type.type - Indicates the complication template type, as defined in ComplicationTemplate.