Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static final class

AccessibilityNodeInfo.RangeInfo

extends Object
java.lang.Object
   ↳ android.view.accessibility.AccessibilityNodeInfo.RangeInfo

Class Overview

Class with information if a node is a range. Use obtain(int, float, float, float) to get an instance.

Summary

Constants
int RANGE_TYPE_FLOAT Range type: float.
int RANGE_TYPE_INT Range type: integer.
int RANGE_TYPE_PERCENT Range type: percent with values from zero to one.
Public Methods
float getCurrent ()
Gets the current value.
float getMax ()
Gets the max value.
float getMin ()
Gets the min value.
int getType ()
Gets the range type.
static AccessibilityNodeInfo.RangeInfo obtain (int type, float min, float max, float current)
Obtains a pooled instance.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int RANGE_TYPE_FLOAT

Range type: float.

Constant Value: 1 (0x00000001)

public static final int RANGE_TYPE_INT

Range type: integer.

Constant Value: 0 (0x00000000)

public static final int RANGE_TYPE_PERCENT

Range type: percent with values from zero to one.

Constant Value: 2 (0x00000002)

Public Methods

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.

public static AccessibilityNodeInfo.RangeInfo obtain (int type, float min, float max, float current)

Obtains a pooled instance.

Parameters
type The type of the range.
min The min value.
max The max value.
current The current value.