Appodeal class
Appodeal SDK Flutter Plugin main class.
This class declares a public API Appodeal SDK Flutter Plugin
Constructors
- Appodeal()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
cache(
int adType) → Future< void> -
Start caching ads for
adType
-
canShow(
int adType, [String placement = "default"]) → Future< bool> -
Check if ad with specific
adType
can be shown withplacement
-
destroy(
int adType) → Future< void> -
Destroy
adType
advertising -
disableNetwork(
String network, [int adType = Appodeal.ALL]) → Future< void> -
Disabling specified
network
foradType
-
getNativeSDKVersion(
) → Future< String> - Get SDK platform version.
-
getPredictedEcpm(
int adType) → Future< double> -
Get predicted ecpm for certain
adType
-
hide(
int adType) → Future< void> -
Hide
adType
advertising -
initialize(
String appKey, List< int> adTypes, {bool? boolConsent}) → Future<void> - Initialize the Appodeal SDK
-
isAutoCacheEnabled(
int adType) → Future< bool> -
Check if auto cache enabled for
adType
-
isInitialized(
int adType) → Future< bool> -
Check if
adType
is initialized -
isLoaded(
int adType) → Future< bool> -
Check if ad is loaded. for
adType
-
isPrecache(
int adType) → Future< bool> -
Check if loaded ad is precache for
adType
-
muteVideosIfCallsMuted(
bool value) → Future< void> -
Mute video if
true
forAndroid
platform (false
by default). -
setAutoCache(
int adType, bool autoCache) → Future< void> -
Set
autoCache
new ads when current ads was shown foradType
. -
setBannerAnimation(
bool bannerAnimationEnabled) → Future< void> -
Set
bannerAnimationEnabled
(true
by default). -
setBannerCallbacks(
{dynamic onBannerLoaded(bool isPrecache)?, Function? onBannerFailedToLoad, Function? onBannerShown, Function? onBannerShowFailed, Function? onBannerClicked, Function? onBannerExpired}) → void - Set Banner ads callbacks
-
setBannerRotation(
int leftBannerRotation, int rightBannerRotation) → Future< void> - Setting banners inverse rotation (by default: left = 90, right = -90).
-
setChildDirectedTreatment(
bool value) → Future< void> - Disables data collection for kids apps
-
setCustomFilter(
String name, dynamic value) → Future< void> -
Set custom segment filter
name
tovalue
-
setExtraData(
String key, dynamic value) → Future< void> -
Set custom extara data
name
tovalue
-
setInterstitialCallbacks(
{dynamic onInterstitialLoaded(bool isPrecache)?, Function? onInterstitialFailedToLoad, Function? onInterstitialShown, Function? onInterstitialShowFailed, Function? onInterstitialClicked, Function? onInterstitialClosed, Function? onInterstitialExpired}) → void - Set Interstitial ads callbacks
-
setLogLevel(
int logLevel) → Future< void> -
Set
logLevel
-
setMrecCallbacks(
{dynamic onMrecLoaded(bool isPrecache)?, Function? onMrecFailedToLoad, Function? onMrecShown, Function? onMrecShowFailed, Function? onMrecClicked, Function? onMrecExpired}) → void - Set MREC ads callbacks
-
setRewardedVideoCallbacks(
{dynamic onRewardedVideoLoaded(bool isPrecache)?, Function? onRewardedVideoFailedToLoad, Function? onRewardedVideoShown, Function? onRewardedVideoShowFailed, Function? onRewardedVideoClicked, dynamic onRewardedVideoFinished(double amount, String reward)?, dynamic onRewardedVideoClosed(bool isFinished)?, Function? onRewardedVideoExpired}) → void - Set Rewarded video ads callbacks
-
Set
sharedAdsInstanceAcrossActivities
forAndroid
platform (true
by default). -
setSmartBanners(
bool smartBannerEnabled) → Future< void> -
Set
smartBannerEnabled
(false
by default). -
setTabletBanners(
bool tabletBannerEnabled) → Future< void> -
Set
tabletBannerEnabled
(false
by default). -
setTesting(
bool testMode) → Future< void> -
Set
testMode
-
setTriggerOnLoadedOnPrecache(
int adType, bool onLoadedTriggerBoth) → Future< void> -
Set triggering onLoaded callback when precache loaded for
adType
-
setUserAge(
int age) → Future< void> -
Set
age
-
setUserGender(
int gender) → Future< void> -
Set
gender
-
setUserId(
String userId) → Future< void> -
Set
userId
-
setUseSafeArea(
bool value) → Future< void> -
Set use safe area
value
forAndroid
platform (false
by default). -
show(
int adType, [String placement = "default"]) → Future< bool> -
Show
adType
advertising withplacement
-
trackInAppPurchase(
double amount, String currency) → Future< void> -
Tracks in-app purchase information (
amount
andcurrency
) and sends info to our servers for analytics -
updateConsent(
bool? boolConsent) → Future< void> -
Update user
boolConsent
value for Appodeal SDK and Ad networks
Constants
- ALL → const int
- All types of advertising.
- BANNER → const int
- Rectangular ads that appear at the top/right/bottom/left or view of the device screen.
- BANNER_BOTTOM → const int
- BANNER_LEFT → const int
- BANNER_RIGHT → const int
- BANNER_TOP → const int
- GENDER_FEMALE → const int
- Gender female for setUserGender method.
- GENDER_MALE → const int
- Gender male for setUserGender method.
- GENDER_OTHER → const int
- Gender other for setUserGender method.
- INTERSTITIAL → const int
- Interstitial ads are full-screen ads that cover the interface of their host app.
- LogLevelDebug → const int
- Log level debug for setLogLevel method.
- LogLevelNone → const int
- Log level none for setLogLevel method.
- LogLevelVerbose → const int
- Log level verbose for setLogLevel method.
- MREC → const int
- Rectangular ads (with defined size 300x250 dp) that appear at the view of the device screen.
- NATIVE → const int
- Native ads are ad assets that are presented to users via UI components that are native to the platform.
- REWARDED_VIDEO → const int
- Ads that reward users for watching short videos and interacting with playable ads and surveys.