public class ComplicationCallback
extends java.lang.Object
ComplicationCallback object in ComplicationProviderAbility.SystemCapability.Wearable#COMPLICATION| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
refresh(int complicationIndex,
ComplicationEntity data) |
Sends refresh data of a specified complication to the watch face.
|
void |
refreshNone(int complicationIndex) |
Sends invalid data of a specified complication to the watch face.
|
public void refresh(int complicationIndex,
ComplicationEntity data)
complicationIndex - Indicates the index for the specified complication.data - Indicates the refresh data.public void refreshNone(int complicationIndex)
complicationIndex - Indicates the index for the specified complication.