public interface FullScreenAdSession
A provider’s handle for a single full screen ad (interstitial, rewarded,
rewarded interstitial or app open). Created by
AdProvider.createFullScreenAd(com.codename1.ads.AdFormat, String) and
driven by the public format classes in com.codename1.ads.
This is an internal SPI type.
Methods
public abstract void setCallback(AdSessionCallback callback) | Registers the callback used to report lifecycle events. |
public abstract void setServerSideVerificationOptions(ServerSideVerificationOptions options) | Sets the server side verification options for rewarded formats. |
public abstract void load(AdRequest request) | Begins loading an ad. |
public abstract boolean isLoaded() | True if an ad is loaded and ready to show. |
public abstract void show() | Presents the loaded ad. |
public abstract void setAutoShowOnForeground(boolean enabled) | For app open ads only: enables the provider managed auto-show on foreground. |
public abstract void dispose() | Releases native resources held by this session. |
Method details
setCallback
public abstract void setCallback(AdSessionCallback callback)Registers the callback used to report lifecycle events. Called once
immediately after creation.
setServerSideVerificationOptions
public abstract void setServerSideVerificationOptions(ServerSideVerificationOptions options)Sets the server side verification options for rewarded formats. Optional;
providers that do not support SSV may ignore this.
load
public abstract void load(AdRequest request)Begins loading an ad. The request may be null for a default load.
isLoaded
public abstract boolean isLoaded()True if an ad is loaded and ready to show.
show
public abstract void show()Presents the loaded ad. Does nothing if no ad is loaded.
setAutoShowOnForeground
public abstract void setAutoShowOnForeground(boolean enabled)For app open ads only: enables the provider managed auto-show on
foreground. No-op for other formats.
dispose
public abstract void dispose()Releases native resources held by this session.