AgeRestrictedTreatment

public enum AgeRestrictedTreatment extends Enum


Age restricted treatment options passed to RequestConfiguration.Builder.setAgeRestrictedTreatment.

Summary

Enum Values

CHILD

Indicates that ad requests should receive CHILD age treatment.

TEEN

Indicates that ad requests should receive TEEN age treatment.

UNSPECIFIED

Indicates that no specific age restricted treatment signal applies to the ad request.

Public methods

final @NonNull EnumEntries<@NonNull AgeRestrictedTreatment>

Age restricted treatment options passed to RequestConfiguration.Builder.setAgeRestrictedTreatment.

final int
final @NonNull AgeRestrictedTreatment

Returns the enum constant of this type with the specified name.

final @NonNull AgeRestrictedTreatment[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

CHILD

AgeRestrictedTreatment AgeRestrictedTreatment.CHILD

Indicates that ad requests should receive CHILD age treatment.

TEEN

AgeRestrictedTreatment AgeRestrictedTreatment.TEEN

Indicates that ad requests should receive TEEN age treatment.

UNSPECIFIED

AgeRestrictedTreatment AgeRestrictedTreatment.UNSPECIFIED

Indicates that no specific age restricted treatment signal applies to the ad request.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull AgeRestrictedTreatmentgetEntries()

Age restricted treatment options passed to RequestConfiguration.Builder.setAgeRestrictedTreatment.

getValue

public final int getValue()

valueOf

public final @NonNull AgeRestrictedTreatment valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull AgeRestrictedTreatment[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.