AdFormat

enum AdFormat : Enum


Format of the ad being requested.

Summary

Enum Values

APP_OPEN_AD

App open ad format.

BANNER

Banner ad format.

INTERSTITIAL

Interstitial ad format.

NATIVE

Native ad format.

REWARDED

Rewarded ad format.

REWARDED_INTERSTITIAL

Rewarded interstitial ad format.

UNKNOWN

Unknown ad format.

Public functions

AdFormat
valueOf(value: String)

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

Array<AdFormat>

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

Public properties

EnumEntries<AdFormat>

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

Enum Values

APP_OPEN_AD

val AdFormat.APP_OPEN_ADAdFormat

App open ad format.

val AdFormat.BANNERAdFormat

Banner ad format.

INTERSTITIAL

val AdFormat.INTERSTITIALAdFormat

Interstitial ad format.

NATIVE

val AdFormat.NATIVEAdFormat

Native ad format.

REWARDED

val AdFormat.REWARDEDAdFormat

Rewarded ad format.

REWARDED_INTERSTITIAL

val AdFormat.REWARDED_INTERSTITIALAdFormat

Rewarded interstitial ad format.

UNKNOWN

val AdFormat.UNKNOWNAdFormat

Unknown ad format.

Public functions

valueOf

fun valueOf(value: String): AdFormat

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<AdFormat>

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<AdFormat>

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.