> Documentation index: https://developer.android.com/reference/llms.txt

# GetAgeRangeResponse

Artifact: [androidx.credentials.agesignals:agesignals](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt) [View Source](https://cs.android.com/search?q=file:androidx/credentials/agesignals/GetAgeRangeResponse.kt+class:androidx.credentials.agesignals.GetAgeRangeResponse) Added in [1.0.0-alpha01](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt#1.0.0-alpha01)

*** ** * ** ***


```
public final class GetAgeRangeResponse
```

<br />

*** ** * ** ***

Contains the age range signal for the user.

## Summary

| ### Constants |
|---|---|
| `static final int` | `ASSURANCE_TIER_A = 1` User has provided their age information to the age provider. |
| `static final int` | `ASSURANCE_TIER_B = 2` User's age is managed by a parent or a guardian. |
| `static final int` | `ASSURANCE_TIER_UNSPECIFIED = 0` The assurance tier is not specified or shared by the provider. |

| ### Public constructors |
|---|
| `GetAgeRangeResponse( int lowerAgeBound, Integer upperAgeBound, int assuranceTier )` |

| ### Public methods |
|---|---|
| `boolean` | `equals(Object other)` |
| `final int` | `getAssuranceTier()` tier of assurance for this age signal, defined in `AgeAssuranceTier` |
| `final int` | `getLowerAgeBound()` inclusive lower bound of the user's age range as a non-negative number |
| `final Integer` | `getUpperAgeBound()` inclusive upper bound of the user's age range as a non-negative number, or null when the range is open-ended (e.g., 18+) |
| `int` | `hashCode()` |
| `@NonNull String` | `toString()` |

## Constants

### ASSURANCE_TIER_A

```
public static final int ASSURANCE_TIER_A = 1
```

User has provided their age information to the age provider. The age provider may or may not have confirmed this information.

### ASSURANCE_TIER_B

```
public static final int ASSURANCE_TIER_B = 2
```

User's age is managed by a parent or a guardian.

### ASSURANCE_TIER_UNSPECIFIED

```
public static final int ASSURANCE_TIER_UNSPECIFIED = 0
```

The assurance tier is not specified or shared by the provider.

## Public constructors

### GetAgeRangeResponse

Added in [1.0.0-alpha01](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt#1.0.0-alpha01)

```
public GetAgeRangeResponse(
    int lowerAgeBound,
    Integer upperAgeBound,
    int assuranceTier
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getAssuranceTier

Added in [1.0.0-alpha01](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt#1.0.0-alpha01)

```
public final int getAssuranceTier()
```

tier of assurance for this age signal, defined in `AgeAssuranceTier`

### getLowerAgeBound

Added in [1.0.0-alpha01](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt#1.0.0-alpha01)

```
public final int getLowerAgeBound()
```

inclusive lower bound of the user's age range as a non-negative number

### getUpperAgeBound

Added in [1.0.0-alpha01](https://developer.android.com/jetpack/androidx/releases/credentials-agesignals.md.txt#1.0.0-alpha01)

```
public final Integer getUpperAgeBound()
```

inclusive upper bound of the user's age range as a non-negative number, or null when the range is open-ended (e.g., 18+)

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```