Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#constants) \| [Fields](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#lfields) \| [Ctors](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#pubctors) \| [Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#inhmethods)

# AccessibilityNodeInfo.RangeInfo

*** ** * ** ***

` public static final class AccessibilityNodeInfo.RangeInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.view.accessibility.AccessibilityNodeInfo.RangeInfo |

<br />

*** ** * ** ***

Class with information if a node is a range.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT` Range type: float. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE` Range type: indeterminate. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT` Range type: integer. |
| `int` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT` Range type: percent with values from zero to one hundred. |

| ### Fields ||
|---|---|
| ` public static final https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo` | `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#INDETERMINATE` A `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo` type used to represent a node which may typically expose range information but is presently in an indeterminate state, such as a `https://developer.android.com/reference/android/widget/ProgressBar` representing a loading operation of unknown duration. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RangeInfo(int,%20float,%20float,%20float)(int type, float min, float max, float current) ` Creates a new range. |

| ### Public methods ||
|---|---|
| ` float` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#getCurrent()() ` Gets the current value. |
| ` float` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#getMax()() ` Gets the maximum value. |
| ` float` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#getMin()() ` Gets the minimum value. |
| ` int` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#getType()() ` Gets the range type. |
| ` static https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo` | ` https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#obtain(int,%20float,%20float,%20float)(int type, float min, float max, float current) ` *This method was deprecated in API level 33. Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RangeInfo(int,%20float,%20float,%20float)` instead.* |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### RANGE_TYPE_FLOAT

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RANGE_TYPE_FLOAT
```

Range type: float.

<br />

Constant Value: 1 (0x00000001)

### RANGE_TYPE_INDETERMINATE

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RANGE_TYPE_INDETERMINATE
```

Range type: indeterminate. When using this type, the `min`, `max`, and `current` values used to construct an instance may be ignored.

<br />

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#INDETERMINATE`

Constant Value: 3 (0x00000003)

### RANGE_TYPE_INT

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RANGE_TYPE_INT
```

Range type: integer.

<br />

Constant Value: 0 (0x00000000)

### RANGE_TYPE_PERCENT

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int RANGE_TYPE_PERCENT
```

Range type: percent with values from zero to one hundred.

<br />

Constant Value: 2 (0x00000002)

## Fields

### INDETERMINATE

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final AccessibilityNodeInfo.RangeInfo INDETERMINATE
```

A `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo` type used to represent a node which may typically expose range information but is presently in an indeterminate state, such as a `https://developer.android.com/reference/android/widget/ProgressBar` representing a loading operation of unknown duration.

<br />

## Public constructors

### RangeInfo

Added in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public RangeInfo (int type, 
                float min, 
                float max, 
                float current)
```

Creates a new range.

<br />

| Parameters ||
|---|---|
| `type` | `int`: The type of the range. Value is one of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE` |
| `min` | `float`: The minimum value. Use `Float.NEGATIVE_INFINITY` if the range has no minimum. <br /> |
| `max` | `float`: The maximum value. Use `Float.POSITIVE_INFINITY` if the range has no maximum. <br /> |
| `current` | `float`: The current value. <br /> |

## Public methods

### getCurrent

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getCurrent ()
```

Gets the current value.

<br />

| Returns ||
|---|---|
| `float` | The current value. <br /> |

### getMax

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getMax ()
```

Gets the maximum value.

<br />

| Returns ||
|---|---|
| `float` | The maximum value, or `Float.POSITIVE_INFINITY` if no maximum exists. <br /> |

### getMin

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public float getMin ()
```

Gets the minimum value.

<br />

| Returns ||
|---|---|
| `float` | The minimum value, or `Float.NEGATIVE_INFINITY` if no minimum exists. <br /> |

### getType

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getType ()
```

Gets the range type.

<br />

| Returns ||
|---|---|
| `int` | The range type. Value is one of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE` |

**See also:**

- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT`
- `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT`

### obtain

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

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

<br />

**This method was deprecated in API level 33.**   

Object pooling has been discontinued. Create a new instance using the constructor `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RangeInfo(int,%20float,%20float,%20float)` instead.

Instantiates a new RangeInfo.

<br />

| Parameters ||
|---|---|
| `type` | `int`: The type of the range. Value is one of the following: - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_FLOAT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_PERCENT` - `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo#RANGE_TYPE_INDETERMINATE` |
| `min` | `float`: The minimum value. Use `Float.NEGATIVE_INFINITY` if the range has no minimum. <br /> |
| `max` | `float`: The maximum value. Use `Float.POSITIVE_INFINITY` if the range has no maximum. <br /> |
| `current` | `float`: The current value. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.RangeInfo` | <br /> |