appOpenCallback method

dynamic appOpenCallback({
  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

appOpenCallback(
    {GenericAdEventCallback<Ad>? onAdShowedFullScreenContent,
    GenericAdEventCallback<Ad>? onAdDismissedFullScreenContent,
    GenericAdEventCallback<Ad>? onAdWillDismissFullScreenContent,
    GenericAdEventCallback<Ad>? onAdImpression,
    GenericAdEventCallback<Ad>? onAdClicked,
    Function(Ad ad, AdError error)? onAdFailedToShowFullScreenContent}) {
  /// Set the fullScreenContentCallback and show the ad.
  appOpenAd?.fullScreenContentCallback = FullScreenContentCallback(
      onAdClicked: onAdClicked,
      onAdShowedFullScreenContent: onAdShowedFullScreenContent,
      onAdDismissedFullScreenContent: onAdDismissedFullScreenContent,
      onAdFailedToShowFullScreenContent: onAdFailedToShowFullScreenContent,
      onAdImpression: onAdImpression,

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