MobileAds class abstract

Inheritance
Implementers

Constructors

MobileAds({AdMobListener? listener})

Properties

Provide the Ad object
no setter
contentUrl String?
no setter
errorListener AdErrorListener?
Set an Error Event Listener.
no getterinherited
hashCode int
The hash code for this object.
no setterinherited
inError bool
Indicate there was an error.
no setterinherited
keywords List<String>?
no setter
listener AdMobListener?
final
loaded bool
getter/setter pair
message String
Displays an error message if any.
no setterinherited
nonPersonalizedAds bool?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
testDevices List<String>?
no setter

Methods

adWidget({Key? key}) Widget
Display as a widget
clearErrorListeners() → void
Empty any error handlers from memory.
inherited
dispose() Future<void>
Clear the MobileAd reference.
override
getError() Exception?
Return any exception
inherited
isLoaded() Future<bool>
Determine if the Ad is loaded.
load() Future<bool>
Explicitly load the Ad
loadAd({required bool show, String? adUnitId, AdRequest? targetInfo, List<String>? keywords, String? contentUrl, bool? childDirected, List<String>? testDevices, bool? nonPersonalizedAds, bool? testing, double? anchorOffset, double? horizontalCenterOffset}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeError(AdErrorListener listener) bool
Remove a specific Error Listener.
inherited
set({String? adUnitId, AdRequest? targetInfo, List<String>? keywords, String? contentUrl, bool? childDirected, List<String>? testDevices, bool? nonPersonalizedAds, bool? testing, double? anchorOffset, double? horizontalCenterOffset, AdErrorListener? errorListener}) → void
Set the MobileAd's options.
override
show() bool
Display the Ad
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited