class GetAgeRangeResponse


Contains the age range signal for the user.

Summary

Constants

const Int

User has provided their age information to the age provider.

const Int

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

const Int

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
open String

Public properties

Int

tier of assurance for this age signal, defined in AgeAssuranceTier

Int

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

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

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
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
val assuranceTier: Int

tier of assurance for this age signal, defined in AgeAssuranceTier

Value is one of the following:

  • 0
  • 1
  • 2

lowerAgeBound

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