ohos.utils.Sequenceablepublic class RangedValue
extends java.lang.Object
implements ohos.utils.Sequenceable
RangedValue object which consists of the maximum, minimum, and current values.SystemCapability.Wearable#COMPLICATION| 构造器 | 说明 |
|---|---|
RangedValue(float max,
float min,
float current) |
A constructor used to create a
RangedValue object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
float |
getCurrent() |
Obtains the current value.
|
float |
getMax() |
Obtains the maximum value.
|
float |
getMin() |
Obtains the minimum value.
|
boolean |
marshalling(ohos.utils.Parcel dest) |
|
boolean |
unmarshalling(ohos.utils.Parcel in) |
|
void |
writeToMap(ohos.utils.PacMap pacMap) |
public RangedValue(float max,
float min,
float current)
RangedValue object.max - Indicates the maximum value.min - Indicates the minimum value.current - Indicates the current value.public float getMax()
public float getMin()
public float 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