public final class GetAgeRangeResponse


Contains the age range signal for the user.

Summary

Constants

static final int

User has provided their age information to the age provider.

static final int

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

static final int

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

tier of assurance for this age signal, defined in AgeAssuranceTier

final int

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

final Integer

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
@NonNull String

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
public GetAgeRangeResponse(
    int lowerAgeBound,
    Integer upperAgeBound,
    int assuranceTier
)

Public methods

equals

public boolean equals(Object other)

getAssuranceTier

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