ohos.utils.Sequenceablepublic class ListValue
extends java.lang.Object
implements ohos.utils.Sequenceable
ListValue object.SystemCapability.Wearable#COMPLICATION| 构造器 | 说明 |
|---|---|
ListValue(float[] values,
long startTime,
int timeStep,
java.lang.String current) |
A constructor used to create a
ListValue object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getCount() |
Obtains the number of values in the
ListValue object. |
java.lang.String |
getCurrent() |
Obtains the current value.
|
long |
getStartTime() |
Obtains the start time.
|
int |
getTimeStep() |
Obtains the time step.
|
float[] |
getValues() |
Obtains the value array.
|
boolean |
marshalling(ohos.utils.Parcel dest) |
|
boolean |
unmarshalling(ohos.utils.Parcel in) |
|
void |
writeToMap(ohos.utils.PacMap pacMap) |
public ListValue(float[] values,
long startTime,
int timeStep,
java.lang.String current)
ListValue object.values - Indicates the array of list values. The array length range is [0, 48].startTime - Indicates the start time, which is a timestamp (in milliseconds) and is rounded up to the half
hour or full hour (for example, 14:16 is rounded up to 14:30).timeStep - Indicates the time step, which is (0, 48]*30 minutes.current - Indicates a string that represents the current value. The length range is [0, 16].public float[] getValues()
public int getCount()
ListValue object.public long getStartTime()
public int getTimeStep()
public java.lang.String getCurrent()
public void writeToMap(ohos.utils.PacMap pacMap)
public boolean marshalling(ohos.utils.Parcel dest)
marshalling 在接口中 ohos.utils.Sequenceablepublic boolean unmarshalling(ohos.utils.Parcel in)
unmarshalling 在接口中 ohos.utils.Sequenceable