public
static
final
class
AccessibilityNodeInfo.RangeInfo
extends Object
java.lang.Object | |
↳ | android.view.accessibility.AccessibilityNodeInfo.RangeInfo |
Class with information if a node is a range. Use
obtain(int, float, float, float)
to get an instance.
Constants | |
---|---|
int |
RANGE_TYPE_FLOAT
Range type: float. |
int |
RANGE_TYPE_INT
Range type: integer. |
int |
RANGE_TYPE_PERCENT
Range type: percent with values from zero to one. |
Public methods | |
---|---|
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(int type, float min, float max, float current)
Obtains a pooled instance. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int RANGE_TYPE_FLOAT
Range type: float.
Constant Value: 1 (0x00000001)
int RANGE_TYPE_INT
Range type: integer.
Constant Value: 0 (0x00000000)
int RANGE_TYPE_PERCENT
Range type: percent with values from zero to one.
Constant Value: 2 (0x00000002)
float getCurrent ()
Gets the current value.
Returns | |
---|---|
float |
The current value. |
AccessibilityNodeInfo.RangeInfo obtain (int type, float min, float max, float current)
Obtains a pooled instance.
Parameters | |
---|---|
type |
int :
The type of the range. |
min |
float :
The min value. |
max |
float :
The max value. |
current |
float :
The current value.
|
Returns | |
---|---|
AccessibilityNodeInfo.RangeInfo |