The Android Developer Challenge is back! Submit your idea before December 2.

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

Gets the max value.

open Float

Gets the min value.

open Int

Gets the range type.

open static AccessibilityNodeInfoCompat.RangeInfoCompat!
obtain(type: Int, min: Float, max: Float, current: Float)

Obtains a cached instance if such is available otherwise a new one.

Constants

RANGE_TYPE_FLOAT

static val RANGE_TYPE_FLOAT: Int

Range type: float.

Value: 1

RANGE_TYPE_INT

static val RANGE_TYPE_INT: Int

Range type: integer.

Value: 0

RANGE_TYPE_PERCENT

static val RANGE_TYPE_PERCENT: Int

Range type: percent with values from zero to one.

Value: 2

Public methods

getCurrent

open fun getCurrent(): Float

Gets the current value.

Return
Float: The current value.

getMax

open fun getMax(): Float

Gets the max value.

Return
Float: The max value.

getMin

open fun getMin(): Float

Gets the min value.

Return
Float: The min value.

getType

open fun getType(): Int

Gets the range type.

Return
Int: The range type.

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 Int: The min value.
max Int: The max value.
current Int: The current value.
Return
AccessibilityNodeInfoCompat.RangeInfoCompat!: The instance