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: 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. |
Constants
RANGE_TYPE_PERCENT
static val RANGE_TYPE_PERCENT: Int
Range type: percent with values from zero to one hundred.
Value: 2
Public constructors
RangeInfo
RangeInfo(
type: Int,
min: Float,
max: Float,
current: Float)
Creates a new range.
Parameters | |
---|---|
type |
Int: The type of the range. |
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. |
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. |
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. |