public class Complication
extends java.lang.Object
Complications are components used to display data on the watch face. The type of data displayed can be a launcher icon, a long text string, simple data, ranged data, and list data.
SystemCapability.Wearable#COMPLICATION| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
Complication.Type |
Enumerates complication types.
|
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
TYPE_LARGE |
Indicates a complication that displays a long text string.
|
static int |
TYPE_LAUNCHER |
Indicates a complication that displays a launcher icon.
|
static int |
TYPE_LIST |
Indicates a complication that displays list data.
|
static int |
TYPE_NO_DATA |
Indicates a complication that displays no data.
|
static int |
TYPE_RANGED |
Indicates a complication that displays ranged data.
|
static int |
TYPE_SIMPLE |
Indicates a complication that displays simple data.
|
public static final int TYPE_LARGE
The watch face displays a template that may contain an icon, a title and a long text string, as defined in
ComplicationTemplate.
public static final int TYPE_LAUNCHER
The watch face displays an icon. You can click it to reach the application.
public static final int TYPE_LIST
The watch face displays a template that may contain an icon, a title and list data, as defined in
ComplicationTemplate.
public static final int TYPE_NO_DATA
public static final int TYPE_RANGED
The watch face displays a template that may contain an icon, a title and ranged data, as defined in
ComplicationTemplate.
The ranged data includes maximum, minimum and current values, all of which are of the float type.
public static final int TYPE_SIMPLE
The watch face displays a template that may contain an icon, a title and simple data (float or string), as
defined in ComplicationTemplate.