AudienceNetwork class

All non-widget functions such as initialization, loading interstitial, in-stream and reward video ads are enclosed in this class.

Initialize the Facebook Audience Network by calling the static init function.

Constructors

AudienceNetwork()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

init({String? testingId, bool testMode = false, bool iOSAdvertiserTrackingEnabled = false}) Future<bool?>
Initializes the Facebook Audience Network. testingId can be used to obtain test Ads. testMode can be used to obtain test Ads as well, it is more useful on iOS where testingId keeps changing.