Android SDK Version
- AbstractAdListener
- Ad
- AdChoicesView
- AdError
- AdIconView
- AdListener
- AdOptionsView
- AdOptionsView.Orientation
- AdSettings
- AdSettings.IntegrationErrorMode
- AdSettings.MultiprocessSupportMode
- AdSettings.TestAdType
- AdSize
- AdView
- AudienceNetworkActivity
- AudienceNetworkAds
- AudienceNetworkAds.AdFormat
- AudienceNetworkAds.InitListener
- AudienceNetworkAds.InitResult
- AudienceNetworkAds.InitSettingsBuilder
- BidderTokenProvider
- CacheFlag
- DefaultMediaViewVideoRenderer
- ExtraHints
- ExtraHints.Builder
- ExtraHints.HintType
- ExtraHints.Keyword
- InstreamVideoAdListener
- InstreamVideoAdView
- InterstitialAd
- InterstitialAdExtendedListener
- InterstitialAdListener
- MediaView
- MediaViewListener
- MediaViewVideoRenderer
- MediaViewVideoRendererWithBackgroundPlayback
- NativeAd
- NativeAd.AdCreativeType
- NativeAdBase
- NativeAdBase.Image
- NativeAdBase.MediaCacheFlag
- NativeAdBase.NativeComponentTag
- NativeAdBase.Rating
- NativeAdLayout
- NativeAdListener
- NativeAdScrollView
- NativeAdScrollView.AdViewProvider
- NativeAdsManager
- NativeAdsManager.Listener
- NativeAdView
- NativeAdView.Type
- NativeAdViewAttributes
- NativeBannerAd
- NativeBannerAdView
- NativeBannerAdView.Type
- RewardData
- RewardedVideoAd
- RewardedVideoAdExtendedListener
- RewardedVideoAdListener
- S2SRewardedVideoAdExtendedListener
- S2SRewardedVideoAdListener
- VideoAutoplayBehavior
- VideoStartReason
- java.lang.Object
- java.lang.Enum<NativeBannerAdView.Type>
- com.facebook.ads.NativeBannerAdView.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NativeBannerAdView.Type>
Enclosing class:
public static enum NativeBannerAdView.Type extends java.lang.Enum<NativeBannerAdView.Type>
Since:
4.99
Enum Constant Summary
Enum Constant and Description |
---|
HEIGHT_100 Native template with height 100dp and flexible width, includes icon, title, context, and CTA button. |
HEIGHT_120 Native template with height 120dp and flexible width, includes icon, title, context, description, and CTA button. |
HEIGHT_50 Native template with height 50dp and flexible width, includes icon, title, context, and CTA button. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int | getEnumCode() |
int | getHeight() Gets the height of the ad control. |
int | getValue() |
int | getWidth() Gets the width of the ad control. |
static NativeBannerAdView.Type | valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. |
static NativeBannerAdView.Type[] | values() Returns an array containing the constants of this enum type, in the order they are declared. |
Enum Constant Detail
HEIGHT_50
public static final NativeBannerAdView.Type HEIGHT_50
Native template with height 50dp and flexible width, includes icon, title, context, and CTA button.
HEIGHT_100
public static final NativeBannerAdView.Type HEIGHT_100
Native template with height 100dp and flexible width, includes icon, title, context, and CTA button.
HEIGHT_120
public static final NativeBannerAdView.Type HEIGHT_120
Native template with height 120dp and flexible width, includes icon, title, context, description, and CTA button.
Method Detail
values
public static NativeBannerAdView.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NativeBannerAdView.Type c : NativeBannerAdView.Type.values()) System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
public static NativeBannerAdView.Type valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullgetWidth
public int getWidth()
Gets the width of the ad control.
Returns:
width of the ad control in DP
getHeight
public int getHeight()
Gets the height of the ad control.
Returns:
height of the ad control in DP
getValue
public int getValue()
getEnumCode
public int getEnumCode()