RangeInfoCompat
open class RangeInfoCompat
kotlin.Any | |
↳ | androidx.core.view.accessibility.AccessibilityNodeInfoCompat.RangeInfoCompat |
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. |
Public methods | |
---|---|
open Float |
Gets the current value. |
open Float |
getMax() Gets the max value. |
open Float |
getMin() Gets the min value. |
open Int |
getType() Gets the range type. |
open static AccessibilityNodeInfoCompat.RangeInfoCompat! |
Obtains a cached instance if such is available otherwise a new one. |
Constants
RANGE_TYPE_PERCENT
static val RANGE_TYPE_PERCENT: Int
Range type: percent with values from zero to one.
Value: 2
Public methods
obtain
open static fun obtain(
type: Int,
min: Float,
max: Float,
current: Float
): AccessibilityNodeInfoCompat.RangeInfoCompat!
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. |
Return | |
---|---|
AccessibilityNodeInfoCompat.RangeInfoCompat! |
The instance |