Enum AdFormat
- All Implemented Interfaces:
Comparable<AdFormat>
The ad formats supported by the modern advertising API. Not every
AdProvider supports every format; query
AdManager.isSupported(AdFormat) before requesting one.-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA full screen ad shown when the application is brought to the foreground.A small rectangular ad that lives inside the component hierarchy.A full screen ad shown at a natural break (e.g. between game levels).An ad whose assets are rendered by the application using its own components.An opt-in full screen ad that grants the user a reward for watching.A full screen ad shown on a transition that may grant a reward but is not strictly opt-in. -
Method Summary
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
BANNER
-
INTERSTITIAL
A full screen ad shown at a natural break (e.g. between game levels). SeeInterstitialAd. -
REWARDED
An opt-in full screen ad that grants the user a reward for watching. SeeRewardedAd. -
REWARDED_INTERSTITIAL
A full screen ad shown on a transition that may grant a reward but is not strictly opt-in. SeeRewardedInterstitialAd. -
APP_OPEN
-
NATIVE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-