AdsSettings class abstract
Constructors
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
-
addTestDeviceId(
String deviceId) → Future< void> -
allowInterstitialAdsWhenVideoCostAreLower(
bool isAllow) → Future< void> - See isAllowInterstitialAdsWhenVideoCostAreLower
-
getAdditionalConsent(
int providerId) → Future< ConsentStatus> -
Parses the
SharedPreferences
string with keyIABTCF_AddtlConsent
to determine the consent status of the advertising entity with the provided Ad Technology Provider (ATP) ID. -
getBannerRefreshInterval(
) → Future< int> - Set the number of seconds an ad is displayed before a new ad is shown. After the interval has passed, a new advertisement will be automatically loaded.
-
getCPPAStatus(
) → Future< CCPAStatus> - Whether or not user has opted out of the sale of their personal information.
-
getDebugMode(
) → Future< bool> - The enabled Debug Mode will display a lot of useful information for debugging about the states of the sdk with tag CAS. Disabling Debug Mode may improve application performance.
-
getInterstitialInterval(
) → Future< int> - The interval between impressions Interstitial Ad in seconds.
-
getLoadingMode(
) → Future< LoadingMode> - Mediation waterfall loading mode.
-
getMutedAdSounds(
) → Future< bool> - Indicates if the application’s audio is muted. Affects initial mute state for all ads. Use this method only if your application has its own volume controls (e.g., custom music or sound effect muting).
-
getTaggedAudience(
) → Future< Audience> - Ad filters by Audience
-
getTrialAdFreeInterval(
) → Future< int> - Defines the time interval, in seconds, starting from the moment of the initial app installation, during which users can use the application without ads being displayed while still retaining access to the Rewarded Ads format. Within this interval, users enjoy privileged access to the application's features without intrusive advertisements.
-
getUserConsent(
) → Future< ConsentStatus> - GDPR User consent status of data collection.
-
getVendorConsent(
int vendorId) → Future< ConsentStatus> -
Parses the
SharedPreferences
string with keyIABTCF_VendorConsents
to determine the consent status of the IAB vendor with the provided ID. -
isAllowInterstitialAdsWhenVideoCostAreLower(
) → Future< bool> - This option will compare ad cost and serve regular interstitial ads when rewarded video ads are expected to generate less revenue. Interstitial Ads does not require to watch the video to the end, but the AdCallback.onComplete callback will be triggered in any case.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
restartInterstitialInterval(
) → Future< void> - Restart interval until next Interstitial ad display.
-
setBannerRefreshInterval(
int interval) → Future< void> - See getBannerRefreshInterval
-
setCCPAStatus(
CCPAStatus status) → Future< void> - See getCPPAStatus
-
setDebugMode(
bool isEnable) → Future< void> - See getDebugMode
-
setInterstitialInterval(
int interval) → Future< void> - See getInterstitialInterval
-
setLoadingMode(
LoadingMode loadingMode) → Future< void> - See getLoadingMode
-
setMutedAdSounds(
bool muted) → Future< void> - See getMutedAdSounds
-
setTaggedAudience(
Audience audience) → Future< void> - See getTaggedAudience
-
setTestDeviceId(
String deviceIds) → Future< void> - Add a test device ID corresponding to test devices which will always request test ads. List of test devices should be defined before first MediationManager initialized.
-
setTestDeviceIds(
Set< String> deviceIds) → Future<void> - See setTestDeviceId
-
setTrialAdFreeInterval(
int interval) → Future< void> - See getTrialAdFreeInterval
-
setUserConsent(
ConsentStatus consent) → Future< void> - See getUserConsent
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited