Appodeal class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
cache (int adType )
→ Future <void >
Cache an ad of certain type adType
.
canShow (int adType , {String ? placementName })
→ Future <bool >
Check if an impression is available for a certain type adType
and placement.
disableAndroidLocationPermissionCheck ()
→ Future <void >
Disable the Android location permission check.
disableAndroidWriteExternalStoragePermissionCheck ()
→ Future <void >
Disable the Android write external storage permission check.
fetchConsentInfo ()
→ Future <Consent >
Fetches the user consent status, respecting the GDPR and CCPA laws, to track him online. This command must be
called before the initialization of the Appodeal plugin.
initialize ({required bool hasConsent , List <int > adTypes = const [] , bool testMode = false , bool verbose = false })
→ Future <void >
Initialize the Appodeal plugin.
isReadyForShow (int adType )
→ Future <bool >
Check if an ad of certain type adType
is ready to be presented.
requestConsentAuthorization ()
→ Future <void >
Displays a dialog window where the user can grant or deny access to be tracked online, according to GDPR or CCPA
laws.
requestIOSTrackingAuthorization ()
→ Future <bool >
Request the user authorization to track him online in order to deliver more relevant ads. This command must be
called before the initialization of the Appodeal plugin.
setAppKeys ({String ? androidAppKey , String ? iosAppKey })
→ void
Define the Appodeal app keys for Android and iOS. At least one of the keys must be set, otherwise an error will be
thrown during the initialization.
setAutoCache (int adType , bool autoCache )
→ Future <void >
Enable or disable the auto caching of an ad of certain type adType
.
setBannerCallback (dynamic callback (String event ) )
→ void
Define a callback to track banner ad events.
setInterstitialCallback (dynamic callback (String event ) )
→ void
Define a callback to track interstitial ad events.
setIOSLocationTracking (bool enabled )
→ Future <void >
Enable or disable the iOS location tracking.
setMrecCallback (dynamic callback (String event ) )
→ void
Define a callback to track MREC ad events.
setNonSkippableCallback (dynamic callback (String event ) )
→ void
Define a callback to track non-skippable ad events.
setRewardCallback (dynamic callback (String event ) )
→ void
Define a callback to track reward ad events.
shouldShowConsent ()
→ Future <bool >
Checks if the app needs to request the user consent to track him online.
show (int adType , {String ? placementName })
→ Future <bool >
Shows an ad of certain type adType
.