FullScreenContentCallback<T extends Ad> constructor

const FullScreenContentCallback<T extends Ad>({
  1. GenericAdEventCallback<T>? onAdShowedFullScreenContent,
  2. GenericAdEventCallback<T>? onAdImpression,
  3. void onAdFailedToShowFullScreenContent(
    1. T ad,
    2. AdError error
    )?,
  4. GenericAdEventCallback<T>? onAdWillDismissFullScreenContent,
  5. GenericAdEventCallback<T>? onAdDismissedFullScreenContent,
  6. GenericAdEventCallback<T>? 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,
});