appOpenCallback method
dynamic
appOpenCallback({
- GenericAdEventCallback<
Ad> ? onAdShowedFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdDismissedFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdWillDismissFullScreenContent, - GenericAdEventCallback<
Ad> ? onAdImpression, - GenericAdEventCallback<
Ad> ? onAdClicked, - dynamic onAdFailedToShowFullScreenContent(
- Ad ad,
- 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);
}