public static final class AccessibilityNodeInfo.RangeInfo extends Object
obtain(int, float, float, float)
to get an instance.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 AccessibilityNodeInfo.RangeInfo |
obtain(AccessibilityNodeInfo.RangeInfo other)
Obtains a pooled instance that is a clone of another one.
|
static AccessibilityNodeInfo.RangeInfo |
obtain(int type,
float min,
float max,
float current)
Obtains a pooled instance.
|
public static final int RANGE_TYPE_INT
public static final int RANGE_TYPE_FLOAT
public static final int RANGE_TYPE_PERCENT
public static AccessibilityNodeInfo.RangeInfo obtain(AccessibilityNodeInfo.RangeInfo other)
other
- The instance to clone.public static AccessibilityNodeInfo.RangeInfo 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 int getType()
RANGE_TYPE_INT
,
RANGE_TYPE_FLOAT
,
RANGE_TYPE_PERCENT
public float getMin()
public float getMax()
public float getCurrent()