public class

AccessibilityNodeInfoCompat.RangeInfoCompat

extends java.lang.Object

 java.lang.Object

↳androidx.core.view.accessibility.AccessibilityNodeInfoCompat.RangeInfoCompat

Overview

Class with information if a node is a range.

Summary

Fields
public static final intRANGE_TYPE_FLOAT

Range type: float.

public static final intRANGE_TYPE_INT

Range type: integer.

public static final intRANGE_TYPE_PERCENT

Range type: percent with values from zero to one.

Constructors
publicRangeInfoCompat(int type, float min, float max, float current)

Creates a new range.

Methods
public floatgetCurrent()

Gets the current value.

public floatgetMax()

Gets the max value.

public floatgetMin()

Gets the min value.

public intgetType()

Gets the range type.

public static AccessibilityNodeInfoCompat.RangeInfoCompatobtain(int type, float min, float max, float current)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final int RANGE_TYPE_INT

Range type: integer.

public static final int RANGE_TYPE_FLOAT

Range type: float.

public static final int RANGE_TYPE_PERCENT

Range type: percent with values from zero to one.

Constructors

public RangeInfoCompat(int type, float min, float max, float current)

Creates a new range.

Parameters:

type: The type of the range.
min: The minimum value. Use Float.NEGATIVE_INFINITY if the range has no minimum.
max: The maximum value. Use Float.POSITIVE_INFINITY if the range has no maximum.
current: The current value.

Methods

public static 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: The type of the range.
min: The min value.
max: The max value.
current: The current value.

Returns:

The instance

public float getCurrent()

Gets the current value.

Returns:

The current value.

public float getMax()

Gets the max value.

Returns:

The max value.

public float getMin()

Gets the min value.

Returns:

The min value.

public int getType()

Gets the range type.

Returns:

The range type.

See also: AccessibilityNodeInfoCompat.RangeInfoCompat.RANGE_TYPE_INT, AccessibilityNodeInfoCompat.RangeInfoCompat.RANGE_TYPE_FLOAT, AccessibilityNodeInfoCompat.RangeInfoCompat.RANGE_TYPE_PERCENT