belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
AccessibilityNodeInfoCompat.RangeInfoCompat
public
static
class
AccessibilityNodeInfoCompat.RangeInfoCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.accessibility.AccessibilityNodeInfoCompat.RangeInfoCompat |
Class with information if a node is a range.
Summary
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
AccessibilityNodeInfoCompat.RangeInfoCompat
|
obtain(int type, float min, float max, float current)
Obtains a cached instance if such is available otherwise a new one. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Constants
RANGE_TYPE_FLOAT
int RANGE_TYPE_FLOAT
Range type: float.
Constant Value: 1 (0x00000001)
RANGE_TYPE_INT
int RANGE_TYPE_INT
Range type: integer.
Constant Value: 0 (0x00000000)
RANGE_TYPE_PERCENT
int RANGE_TYPE_PERCENT
Range type: percent with values from zero to one.
Constant Value: 2 (0x00000002)
Public methods
getCurrent
float getCurrent ()
Gets the current value.
Returns | |
---|---|
float |
The current value. |
obtain
AccessibilityNodeInfoCompat.RangeInfoCompat obtain (int type, float min, float max, float current)
Obtains a cached instance if such is available otherwise a new one.
Parameters | |
---|---|
type |
int : The type of the range. |
min |
float : The min value. |
max |
float : The max value. |
current |
float : The current value. |
Returns | |
---|---|
AccessibilityNodeInfoCompat.RangeInfoCompat |
The instance |
Interfaces
Classes
- AccessibilityEventCompat
- AccessibilityManagerCompat
- AccessibilityManagerCompat.AccessibilityStateChangeListenerCompat
- AccessibilityNodeInfoCompat
- AccessibilityNodeInfoCompat.AccessibilityActionCompat
- AccessibilityNodeInfoCompat.CollectionInfoCompat
- AccessibilityNodeInfoCompat.CollectionItemInfoCompat
- AccessibilityNodeInfoCompat.RangeInfoCompat
- AccessibilityNodeProviderCompat
- AccessibilityRecordCompat
- AccessibilityWindowInfoCompat