Fullscreen (Interstitial)
Integrate fullscreen ads
Create placement
Call FullscreenPlacement.create
method to create fullscreen placement:
_fullscreenPlacement =
await FullscreenPlacement.create(name: "FullscreenPlacement");
Reload placement
Start auto-reloading placement by calling:
_fullscreenPlacement.startAutoReload()
Stop auto-reloading placement by calling:
_fullscreenPlacement.stopAutoReload()
Show placement
When fullscreen ad is loaded, you can show it:
_fullscreenPlacement.show()
Listen to events
Set listener to receive placement-specific events:
_fullscreenPlacement.listener = FullscreenPlacementListener(
onHaveAd: (placement) => print("[${placement.name}] onHaveAd"),
onNoAd: (placement) => print("[${placement.name}] onNoAd"),
onPauseForAd: (placement) => print("[${placement.name}] onPauseForAd"),
onResumeAfterAd: (placement) =>
print("[${placement.name}] onResumeAfterAd"),
);
Last updated