CASInterstitial class abstract

Manages an interstitial ad, allowing for loading, showing, and destroying the ad content.

This class provides functionality to handle interstitial ads, which are full-screen ads that cover the entire screen and are typically used at natural transition points within an app.

casId The unique identifier for the CAS content, typically an application bundle name.

Constructors

CASInterstitial.new()

Properties

contentCallback ScreenAdContentCallback?
Gets or sets the callback for handling ad content events.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
impressionListener OnAdImpressionListener?
Gets or sets the listener for ad impression events.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() Future<void>
dispose() Future<void>
Disposes the ad content and releases any associated resources.
getContentInfo() Future<AdContentInfo?>
Information about the currently loaded ad.
getMinInterval() Future<int>
The minimum interval between showing interstitial ads, in seconds.
isAutoloadEnabled() Future<bool>
Gets or sets whether autoloading of ads is enabled.
isAutoshowEnabled() Future<bool>
Controls whether the ad should be automatically displayed when the user returns to the app.
isLoaded() Future<bool>
Indicates whether the ad is currently loaded and ready to be shown.
load() Future<void>
Loads the interstitial ad content.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restartInterval() Future<void>
Restarts the interval countdown until the next interstitial ad display.
setAutoloadEnabled(bool isEnabled) Future<void>
See getAutoloadEnabled
setAutoshowEnabled(bool isEnabled) Future<void>
See getAutoshowEnabled
setMinInterval(int minInterval) Future<void>
show() Future<void>
Shows the interstitial ad to the user.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create(String casId) CASInterstitial