FullScreenContentCallback<Ad> constructor

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

Construct a new FullScreenContentCallback.

Ad.dispose should be called from onAdFailedToShowFullScreenContent and onAdDismissedFullScreenContent, in order to free up resources.

Implementation

const FullScreenContentCallback({
  this.onAdShowedFullScreenContent,
  this.onAdImpression,
  this.onAdFailedToShowFullScreenContent,
  this.onAdWillDismissFullScreenContent,
  this.onAdDismissedFullScreenContent,
  this.onAdClicked,
});