AppOpenAdInitializer class

The class used to provide information on the app open ad to be initialized

Constructors

AppOpenAdInitializer({required String adUnitId, double loadChance = 1.0, bool showOnLoad = true, FullScreenContentCallback<AppOpenAd>? fullScreenContentCallback, AppOpenAdLoadCallback? appOpenAdLoadCallback, AdRequest adRequest = const AdRequest(), int orientation = AppOpenAd.orientationPortrait})

Properties

adRequest → AdRequest
The optional AdRequest to use when loading the ad
final
adUnitId String
The Ad Unit Id of the ad to be initialized
final
appOpenAdLoadCallback → AppOpenAdLoadCallback?
The optional AppOpenAdLoadCallback to attach to the AppOpenAd managed by an instance of ManagedAppOpenAd initialized with this instance
final
fullScreenContentCallback → FullScreenContentCallback<AppOpenAd>?
The optional FullScreenContentCallback to attach to the AppOpenAd managed by an instance of ManagedAppOpenAd initialized with this instance
final
hashCode int
The hash code for this object.
no setterinherited
loadChance double
The probability, expressed from 0.0 - 1.0, that the Ad will load. This is similar to showChance when showing interstitial or rewarded ads, except that loading App Open Ads is s significant wait for users, and a horrible user experience if that Ad is subsequently not shown, since the app cannot do anything till the Ad is fully loaded.
final
orientation int
The orientation to load the Ad in. Choose one from: AppOpenAd.orientationPortrait AppOpenAd.orientationLandscapeLeft AppOpenAd.orientationLandscapeRight
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showOnLoad bool
Whether the ad should automatically be shown (and subsequently disposed) on load. Disabling this means the ad must be shown manually using ManagedAppOpenAd.showAppOpenAd, but still with automatic disposing.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited