FacebookAdsProvider class
Facebook Ads provider implementation
This class implements the BaseAdProvider interface for Facebook Audience Network. It handles initialization, loading, and showing of Facebook ads with single-load and single-show pattern.
- Implemented types
Constructors
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
-
init(
) → Future< void> -
Initialize the ad provider SDK
override
-
load(
AdType type, {required String adUnitId}) → Future< void> -
Load a single instance of the specified ad type
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
AdType type, {dynamic onReward()?}) → Future< void> -
Show the loaded ad of the specified type
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited