rewardedInterstitialCallback method
Future<void>
rewardedInterstitialCallback({
- GenericAdEventCallback<
Ad> ? onAdShowedFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdDismissedFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdWillDismissFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdImpression, - GenericAdEventCallback<
Ad> ? onAdClicked, - dynamic onAdFailedToShowFullScreenContent(
- Ad ad,
- AdError error
Implementation
Future<void> rewardedInterstitialCallback(
{GenericAdEventCallback<Ad>? onAdShowedFullScreenContent,
GenericAdEventCallback<Ad>? onAdDismissedFullScreenContent,
GenericAdEventCallback<Ad>? onAdWillDismissFullScreenContent,
GenericAdEventCallback<Ad>? onAdImpression,
GenericAdEventCallback<Ad>? onAdClicked,
Function(Ad ad, AdError error)?
onAdFailedToShowFullScreenContent}) async {
rewardedInterstitial?.fullScreenContentCallback = FullScreenContentCallback(
onAdClicked: onAdClicked,
onAdShowedFullScreenContent: onAdShowedFullScreenContent,
onAdDismissedFullScreenContent: onAdDismissedFullScreenContent,
onAdFailedToShowFullScreenContent: onAdFailedToShowFullScreenContent,
onAdImpression: onAdImpression,
/// For iOS only. Called before dismissing a full screen view.
onAdWillDismissFullScreenContent: onAdWillDismissFullScreenContent);
}