AdFormat

enum AdFormat


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.

Public functions

java-static AdFormat?
getAdFormat(adType: Int)

Gets the AdFormat from an integer value.

java-static AdFormat!
valueOf(name: String!)

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

java-static Array<AdFormat!>!

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

Public properties

Int

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.

Public functions

getAdFormat

java-static fun getAdFormat(adType: Int): AdFormat?

Gets the AdFormat from an integer value.

valueOf

java-static fun valueOf(name: 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.)

Returns
AdFormat!

the enum constant with the specified name

Throws
java.lang.IllegalArgumentException

if this enum type has no constant with the specified name

values

java-static 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.

Returns
Array<AdFormat!>!

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

Public properties

value

val valueInt