RequestConfiguration.MaxAdContentRating

public enum RequestConfiguration.MaxAdContentRating extends Enum


Allowed constants for Builder.setMaxAdContentRating.

Supported constants:

  • [MAX_AD_CONTENT_RATING_UNSPECIFIED]
  • [MAX_AD_CONTENT_RATING_G]
  • [MAX_AD_CONTENT_RATING_PG]
  • [MAX_AD_CONTENT_RATING_T]
  • [MAX_AD_CONTENT_RATING_MA]

Summary

Enum Values

MAX_AD_CONTENT_RATING_G

Content suitable for general audiences, including families.

MAX_AD_CONTENT_RATING_MA

Content suitable only for mature audiences.

MAX_AD_CONTENT_RATING_PG

Content suitable for most audiences with parental guidance.

MAX_AD_CONTENT_RATING_T

Content suitable for teen and older audiences.

MAX_AD_CONTENT_RATING_UNSPECIFIED

No specified content rating.

Public methods

final @NonNull EnumEntries<@NonNull RequestConfiguration.MaxAdContentRating>

Allowed constants for Builder.setMaxAdContentRating.

final @NonNull String
final @NonNull RequestConfiguration.MaxAdContentRating

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

final @NonNull RequestConfiguration.MaxAdContentRating[]

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

Enum Values

MAX_AD_CONTENT_RATING_G

RequestConfiguration.MaxAdContentRating RequestConfiguration.MaxAdContentRating.MAX_AD_CONTENT_RATING_G

Content suitable for general audiences, including families.

MAX_AD_CONTENT_RATING_MA

RequestConfiguration.MaxAdContentRating RequestConfiguration.MaxAdContentRating.MAX_AD_CONTENT_RATING_MA

Content suitable only for mature audiences.

MAX_AD_CONTENT_RATING_PG

RequestConfiguration.MaxAdContentRating RequestConfiguration.MaxAdContentRating.MAX_AD_CONTENT_RATING_PG

Content suitable for most audiences with parental guidance.

MAX_AD_CONTENT_RATING_T

RequestConfiguration.MaxAdContentRating RequestConfiguration.MaxAdContentRating.MAX_AD_CONTENT_RATING_T

Content suitable for teen and older audiences.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull RequestConfiguration.MaxAdContentRatinggetEntries()

Allowed constants for Builder.setMaxAdContentRating.

Supported constants:

  • [MAX_AD_CONTENT_RATING_UNSPECIFIED]
  • [MAX_AD_CONTENT_RATING_G]
  • [MAX_AD_CONTENT_RATING_PG]
  • [MAX_AD_CONTENT_RATING_T]
  • [MAX_AD_CONTENT_RATING_MA]

getValue

public final @NonNull String getValue()

valueOf

public final @NonNull RequestConfiguration.MaxAdContentRating 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 RequestConfiguration.MaxAdContentRating[] 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.