CASMobileAds class

Represents the CAS.AI SDK.

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 Properties

targetingOptions TargetingOptions
You can now easily tailor the way you serve your ads to fit a specific audience!
final

Static Methods

getSDKVersion() Future<String>
Gets the version string of CAS Mobile Ads SDK.
initialize({required String casId, Audience targetAudience = Audience.undefined, bool showConsentFormIfRequired = true, bool forceTestAds = false, List<String>? testDeviceIds, PrivacyGeography debugPrivacyGeography = PrivacyGeography.europeanEconomicArea, Map<String, String>? mediationExtras}) Future<InitializationStatus>
Initializes the CAS Mobile Ads SDK.
setAdSoundsMuted(bool muted) Future<void>
Sets whether the ad sourced is muted.
setDebugLoggingEnabled(bool enabled) Future<void>
Enables or disables debug logging to the console.
setTrialAdFreeInterval(int interval) Future<void>
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.