MobileAd class abstract
A mobile BannerAd or InterstitialAd for the FirebaseAdMobPlugin
.
A MobileAd must be loaded with load before it is shown with show.
A valid adUnitId is required.
- Implementers
Constructors
- MobileAd({@required String? adUnitId, MobileAdTargetingInfo? targetingInfo, MobileAdListener? listener})
- Default constructor, used by subclasses.
Properties
- adUnitId → String?
-
Identifies the source of ads for your application.
final
- hashCode → int?
-
The hash code for this object.
no setterinherited
- id → int?
-
An internal id that identifies this mobile ad to the native AdMob plugin.
no setter
- listener ↔ MobileAdListener?
-
Called when the status of the ad changes.
getter/setter pair
- runtimeType → Type?
-
A representation of the runtime type of the object.
no setterinherited
- targetingInfo → MobileAdTargetingInfo?
-
Optional targeting info per the native AdMob API.
no setter
Methods
-
dispose(
) → Future< bool?> ? - Free the plugin resources associated with this ad.
-
isLoaded(
) → Future< bool?> ? -
load(
) → Future< bool?> ? - Start loading this ad.
-
noSuchMethod(
Invocation? invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
{double? anchorOffset = 0.0, double? horizontalCenterOffset = 0.0, AnchorType? anchorType = AnchorType.bottom}) → Future< bool?> ? - Show this ad.
-
toString(
) → String? -
A string representation of this object.
inherited
Operators
-
operator ==(
Object? other) → bool? -
The equality operator.
inherited