AgeRestrictedTreatment

enum AgeRestrictedTreatment : Enum


Age restricted treatment options.

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 functions

AgeRestrictedTreatment
valueOf(value: String)

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

Array<AgeRestrictedTreatment>

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

Public properties

EnumEntries<AgeRestrictedTreatment>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Int

Enum Values

CHILD

val AgeRestrictedTreatment.CHILDAgeRestrictedTreatment

Indicates that ad requests should receive CHILD age treatment.

TEEN

val AgeRestrictedTreatment.TEENAgeRestrictedTreatment

Indicates that ad requests should receive TEEN age treatment.

UNSPECIFIED

val AgeRestrictedTreatment.UNSPECIFIEDAgeRestrictedTreatment

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

Public functions

valueOf

fun valueOf(value: String): AgeRestrictedTreatment

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

fun values(): Array<AgeRestrictedTreatment>

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.

Public properties

entries

val entriesEnumEntries<AgeRestrictedTreatment>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

This method may be used to iterate over the enum entries.

value

val valueInt