> 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)

*** ** * ** ***


```
class GetAgeRangeResponse
```

<br />

*** ** * ** ***

Contains the age range signal for the user.

## Summary

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

| ### Public constructors |
|---|
| `GetAgeRangeResponse( lowerAgeBound: Int, upperAgeBound: Int?, assuranceTier: Int )` |

| ### Public functions |
|---|---|
| `open operator Boolean` | `equals(other: Any?)` |
| `open Int` | `hashCode()` |
| `open String` | `toString()` |

| ### Public properties |
|---|---|
| `Int` | `assuranceTier` tier of assurance for this age signal, defined in `AgeAssuranceTier` |
| `Int` | `lowerAgeBound` inclusive lower bound of the user's age range as a non-negative number |
| `Int?` | `upperAgeBound` 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+) |

## Constants

### ASSURANCE_TIER_A

```
const val ASSURANCE_TIER_A = 1: Int
```

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

### ASSURANCE_TIER_B

```
const val ASSURANCE_TIER_B = 2: Int
```

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

### ASSURANCE_TIER_UNSPECIFIED

```
const val ASSURANCE_TIER_UNSPECIFIED = 0: Int
```

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)

```
GetAgeRangeResponse(
    lowerAgeBound: Int,
    upperAgeBound: Int?,
    assuranceTier: Int
)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### assuranceTier

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

```
val assuranceTier: Int
```

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

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### lowerAgeBound

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

```
val lowerAgeBound: Int
```

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

### upperAgeBound

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

```
val upperAgeBound: Int?
```

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+)