SASInterstitialManager

This class is in charge of loading and displaying interstitial ads

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull adPlacement: SASAdPlacement)
Creates a SASInterstitialManager for a classic use case.
constructor(@NonNull context: Context, @NonNull biddingAdResponse: SASBiddingAdResponse)
Creates a SASInterstitialManager for a bidding use case only.

Types

Link copied to clipboard
Interface definition for Objects that will listen and react to SASInterstitialManager lifecycle events
Link copied to clipboard
interface OnCrashListener
Interface for Objects handling fatal crashes that occurred on underlying WebViews of the passed SASAdView and caught by appropriate WebViewClient

Properties

Link copied to clipboard
Link copied to clipboard
Application set OnCrashListener to be notified when any of the internal webviews has crashed

Functions

Link copied to clipboard
Returns the current status of the interstitial ad of this SASInterstitialManager
Link copied to clipboard
Returns the current loaded SASAdElement for this SASInterstitialManager
Link copied to clipboard
Gets the MessageHandler instance on this SASAdView
Link copied to clipboard
Returns the SASOpenMeasurementManager.
Link copied to clipboard
open fun isShowable(): Boolean
Returns whether there is an interstitial ad ready to be displayed
Link copied to clipboard
open fun loadAd()
open fun loadAd(@Nullable securedTransactionToken: String)
Loads an interstitial ad.
open fun loadAd(@NonNull bidderAdapter: SASBidderAdapter)
open fun loadAd(@Nullable bidderAdapter: SASBidderAdapter, @Nullable securedTransactionToken: String)
Loads and display an ad in this SASAdView using a bidder adapter.
Link copied to clipboard
open fun onDestroy()
This method must be called when the activity (that this SASInterstitialManager is attached to) is destroyed (typically in the onDestroy() method of the activity).
Link copied to clipboard
open fun reset()
Closes any interstitial view currently displayed or cancels any pending loadAd call.
Link copied to clipboard
open fun sendMessageToWebView(message: String)
Sends a message to the underlying WebView of the interstitial.
Link copied to clipboard
Sets the MessageHandler instance on the underlying SASAdView interstitial view
Link copied to clipboard
Sets the specified SASOpenMeasurementManager.
Link copied to clipboard
open fun show()
Shows the previously loaded interstitial, if any.