AdFormat

enum AdFormat : Enum


Format of the ad being requested.

Summary

Enum Values

APP_OPEN_AD

App open ad format.

BANNER

Banner ad format.

ICON

Icon ad format.

INTERSTITIAL

Interstitial ad format.

NATIVE

Native ad format.

REWARDED

Rewarded ad format.

REWARDED_INTERSTITIAL

Rewarded interstitial ad format.

SWIPEABLE_INTERSTITIAL

Swipeable interstitial 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_AD: AdFormat

App open ad format.

val AdFormat.BANNER: AdFormat

Banner ad format.

ICON

val AdFormat.ICON: AdFormat

Icon ad format.

INTERSTITIAL

val AdFormat.INTERSTITIAL: AdFormat

Interstitial ad format.

NATIVE

val AdFormat.NATIVE: AdFormat

Native ad format.

REWARDED

val AdFormat.REWARDED: AdFormat

Rewarded ad format.

REWARDED_INTERSTITIAL

val AdFormat.REWARDED_INTERSTITIAL: AdFormat

Rewarded interstitial ad format.

SWIPEABLE_INTERSTITIAL

val AdFormat.SWIPEABLE_INTERSTITIAL: AdFormat

Swipeable interstitial 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 entries: EnumEntries<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.