AdFormat

public enum AdFormat extends 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.

Public methods

final @NonNull EnumEntries<@NonNull AdFormat>

Format of the ad being requested.

final @NonNull AdFormat

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

final @NonNull AdFormat[]

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

Enum Values

APP_OPEN_AD

AdFormat AdFormat.APP_OPEN_AD

App open ad format.

AdFormat AdFormat.BANNER

Banner ad format.

INTERSTITIAL

AdFormat AdFormat.INTERSTITIAL

Interstitial ad format.

NATIVE

AdFormat AdFormat.NATIVE

Native ad format.

REWARDED

AdFormat AdFormat.REWARDED

Rewarded ad format.

REWARDED_INTERSTITIAL

AdFormat AdFormat.REWARDED_INTERSTITIAL

Rewarded interstitial ad format.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull AdFormatgetEntries()

Format of the ad being requested.

valueOf

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