showInterstitialAd static method
Shows an Interstitial Ad after it has been loaded. (This needs to be called
only after calling loadInterstitialAd function). delay
is in
milliseconds.
Example:
FacebookAudienceNetwork.loadInterstitialAd(
listener: (result, value) {
if (result == InterstitialAdResult.LOADED)
FacebookAudienceNetwork.showInterstitialAd(delay: 5000);
},
);
Implementation
static Future<bool?> showInterstitialAd({int? delay}) async {
return await FacebookInterstitialAd.showInterstitialAd(delay: delay);
}