interstitialCallback method

Future<void> interstitialCallback({
  1. GenericAdEventCallback<Ad>? onAdShowedFullScreenContent,
  2. GenericAdEventCallback<Ad>? onAdDismissedFullScreenContent,
  3. GenericAdEventCallback<Ad>? onAdWillDismissFullScreenContent,
  4. GenericAdEventCallback<Ad>? onAdImpression,
  5. GenericAdEventCallback<Ad>? onAdClicked,
  6. dynamic onAdFailedToShowFullScreenContent(
    1. Ad ad,
    2. AdError error
    )?,
})

Implementation

Future<void> interstitialCallback(
    {GenericAdEventCallback<Ad>? onAdShowedFullScreenContent,
    GenericAdEventCallback<Ad>? onAdDismissedFullScreenContent,
    GenericAdEventCallback<Ad>? onAdWillDismissFullScreenContent,
    GenericAdEventCallback<Ad>? onAdImpression,
    GenericAdEventCallback<Ad>? onAdClicked,
    Function(Ad ad, AdError error)?
        onAdFailedToShowFullScreenContent}) async {
  interstitialAd?.fullScreenContentCallback = FullScreenContentCallback(
      onAdClicked: onAdClicked,
      onAdShowedFullScreenContent: onAdShowedFullScreenContent,
      onAdDismissedFullScreenContent: onAdDismissedFullScreenContent,
      onAdFailedToShowFullScreenContent: onAdFailedToShowFullScreenContent,
      onAdImpression: onAdImpression,

      /// For iOS only. Called before dismissing a full screen view.
      onAdWillDismissFullScreenContent: onAdWillDismissFullScreenContent);
}