RangeInfo
class RangeInfo
| kotlin.Any | |
| ↳ | android.view.accessibility.AccessibilityNodeInfo.RangeInfo | 
Class with information if a node is a range.
Summary
| Constants | |
|---|---|
| static Int | 
            
             Range type: float.  | 
        
| static Int | 
            
             Range type: indeterminate.  | 
        
| static Int | 
            
             Range type: integer.  | 
        
| static Int | 
            
             Range type: percent with values from zero to one hundred.  | 
        
| Public constructors | |
|---|---|
| 
            
             Creates a new range.  | 
        |
| Public methods | |
|---|---|
| Float | 
            
             Gets the current value.  | 
        
| Float | 
            getMax()Gets the maximum value.  | 
        
| Float | 
            getMin()Gets the minimum value.  | 
        
| Int | 
            getType()Gets the range type.  | 
        
| static AccessibilityNodeInfo.RangeInfo! | 
            
             Instantiates a new RangeInfo.  | 
        
| Properties | |
|---|---|
| static AccessibilityNodeInfo.RangeInfo | 
            
             A   | 
        
Constants
RANGE_TYPE_INDETERMINATE
static val RANGE_TYPE_INDETERMINATE: Int
Range type: indeterminate. When using this type, the min, max, and current values used to construct an instance may be ignored.
Value: 3See Also
RANGE_TYPE_PERCENT
static val RANGE_TYPE_PERCENT: Int
Range type: percent with values from zero to one hundred.
Value: 2Public constructors
RangeInfo
RangeInfo(
type: Int,
min: Float,
max: Float,
current: Float)
Creates a new range.
| Parameters | |
|---|---|
type | 
            Int: The type of the range. Value is android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT, android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT, android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT, or android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE | 
          
min | 
            Float: The minimum value. Use Float.NEGATIVE_INFINITY if the range has no minimum. | 
          
max | 
            Float: The maximum value. Use Float.POSITIVE_INFINITY if the range has no maximum. | 
          
current | 
            Float: The current value. | 
Public methods
getCurrent
fun getCurrent(): Float
Gets the current value.
| Return | |
|---|---|
Float | 
            The current value. | 
getMax
fun getMax(): Float
Gets the maximum value.
| Return | |
|---|---|
Float | 
            The maximum value, or Float.POSITIVE_INFINITY if no maximum exists. | 
          
getMin
fun getMin(): Float
Gets the minimum value.
| Return | |
|---|---|
Float | 
            The minimum value, or Float.NEGATIVE_INFINITY if no minimum exists. | 
          
getType
fun getType(): Int
Gets the range type.
obtain
static funobtain(
type: Int,
min: Float,
max: Float,
current: Float
): AccessibilityNodeInfo.RangeInfo!
Deprecated: Object pooling has been discontinued. Create a new instance using the constructor AccessibilityNodeInfo.RangeInfo.RangeInfo(int, float, float, instead.
Instantiates a new RangeInfo.
| Parameters | |
|---|---|
type | 
            Int: The type of the range. Value is android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT, android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT, android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT, or android.view.accessibility.AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE | 
          
min | 
            Float: The minimum value. Use Float.NEGATIVE_INFINITY if the range has no minimum. | 
          
max | 
            Float: The maximum value. Use Float.POSITIVE_INFINITY if the range has no maximum. | 
          
current | 
            Float: The current value. | 
Properties
INDETERMINATE
static val INDETERMINATE: AccessibilityNodeInfo.RangeInfo
A RangeInfo type used to represent a node which may typically expose range information but is presently in an indeterminate state, such as a representing a loading operation of unknown duration.