NativeAdTemplate enum
Standard Native Ad layout templates supported out-of-the-box by AdmobKit.
Pre-wired with dark-themed production layouts across Android (XML/Kotlin) and iOS (Auto Layout/Swift).
Values
- big → const NativeAdTemplate
-
Large format native ad with media view, icon, headline, star rating, body, and a prominent call-to-action button.
Factory ID:
'bigNativeAd'Height:300.0. Width:double.infinity.const NativeAdTemplate(factoryId: 'bigNativeAd', height: 300.0, width: double.infinity, minHeight: 250.0) - medium → const NativeAdTemplate
-
Horizontal list tile style native ad with media view/fallback icon, ad badge, headline, advertiser, body, and CTA button.
Factory ID:
'listTileMedium'(also aliased to'listTile','listTiles') Height:130.0. Width:double.infinity.const NativeAdTemplate(factoryId: 'listTileMedium', height: 130.0, width: double.infinity, minHeight: 120.0) - small → const NativeAdTemplate
-
Compact horizontal native ad with app icon, ad badge, headline, body text, and CTA button.
Factory ID:
'smallNativeAd'Height:74.0. Width:double.infinity.const NativeAdTemplate(factoryId: 'smallNativeAd', height: 74.0, width: double.infinity, minHeight: 64.0)
Properties
- defaultHeight → double
-
Backwards-compatible alias for height.
no setter
- factoryId → String
-
The native platform factory identifier registered in Android/iOS.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
The standard template height in density-independent pixels.
final
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- minHeight → double
-
The minimum acceptable height threshold before layout warnings or truncation.
final
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The standard template width (defaults to double.infinity to fill available horizontal width).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
NativeAdTemplate> - A constant List of the values in this enum, in order of their declaration.