public static class AccessibilityNodeInfoCompat.RangeInfoCompat extends Object
Modifier and Type | Field and Description |
---|---|
static int |
RANGE_TYPE_FLOAT
Range type: float.
|
static int |
RANGE_TYPE_INT
Range type: integer.
|
static int |
RANGE_TYPE_PERCENT
Range type: percent with values from zero to one.
|
Modifier and Type | Method and Description |
---|---|
float |
getCurrent()
Gets the current value.
|
float |
getMax()
Gets the max value.
|
float |
getMin()
Gets the min value.
|
int |
getType()
Gets the range type.
|
static AccessibilityNodeInfoCompat.RangeInfoCompat |
obtain(int type,
float min,
float max,
float current)
Obtains a cached instance if such is available otherwise a new one.
|
public static final int RANGE_TYPE_INT
public static final int RANGE_TYPE_FLOAT
public static final int RANGE_TYPE_PERCENT
public static AccessibilityNodeInfoCompat.RangeInfoCompat obtain(int type, float min, float max, float current)
type
- The type of the range.min
- The min value.max
- The max value.current
- The current value.public float getCurrent()
public float getMax()
public float getMin()
public int getType()
RANGE_TYPE_INT
,
RANGE_TYPE_FLOAT
,
RANGE_TYPE_PERCENT