SASAd View
abstract class SASAdView : FrameLayout, SCSViewabilityManagerListener, SCSCustomerFeedbackController.SCSCustomerFeedbackControllerListener
This abstract class is an Android View in charge of loading and displaying ads.
Inheritors
Constructors
Types
Link copied to clipboard
interface MessageHandler
Interface definition for classes handling multi-purpose messages sent by
SASAdView
instancesLink copied to clipboard
interface NativeVideoStateListener
Listener that is notified when the video is prepared and completed.
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
Link copied to clipboard
Event fired by the SASAdView when its states changes.
Link copied to clipboard
interface VideoEvents
Interface defining video events
Properties
Link copied to clipboard
Link copied to clipboard
Bitmask constant specifying that this view should remain horizontally centered the expand method is called.
Link copied to clipboard
Bitmask constant specifying that this view should remain aligned to its left border when the expand method is called.
Link copied to clipboard
Bitmask constant specifying that the view should remain aligned to its right border when the expand method is called.
Link copied to clipboard
Bitmask constant specifying that this view should expand upwards when the expand method is called.
Link copied to clipboard
Bitmask constant specifying that this view should expand downwards when the expand method is called.
Link copied to clipboard
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
deactivate sticky mode and disable it until this SASADView load a new ad
Link copied to clipboard
Utility method to execute a runnable on the Android main thread (UI thread).
Link copied to clipboard
Expands this SASAdView to the specified size and locks activity orientation if specified
Expands this SASAdView to the specified size and opens url (if not null) in the internal browser
open fun expand(@Nullable url: String, width: Int, height: Int, lockOrientation: Boolean, @Nullable forceOrientation: String)
open fun expand(@Nullable url: String, width: Int, height: Int, offsetX: Int, offsetY: Int, useExpandPolicy: Boolean, allowOffscreen: Boolean, lockOrientation: Boolean, @Nullable forceOrientation: String, isModal: Boolean)
Expands this SASAdView to the specified size and opens url (if not null) in the internal browser, and locks activity orientation if specified
Link copied to clipboard
Returns the custom Bitmap used for the close button in all SASAdView instances
Link copied to clipboard
Returns the custom Drawable used for the close button in all SASAdView instances
Link copied to clipboard
Returns the current SASAdElement being displayed by this SASAdView
Link copied to clipboard
Returns the current SASAdPlacement being displayed by this SASAdView
Link copied to clipboard
Returns the current bounds of this SASAdView with respect to its top container
Link copied to clipboard
Returns the default bounds of this SASAdView (when it is not expanded or resized) with respect to its top container
Link copied to clipboard
Returns the FrameLayout parent container in which this
SASAdView
will place itself when switching to StateChangeEvent#VIEW_EXPANDED state.Link copied to clipboard
Returns the current anchor position when expanding this view (non full screen)
Link copied to clipboard
Returns the SASFormatType expected by this SASAdView
Link copied to clipboard
Returns the View that is displayed on top of this ad view while the ad is being fetched
Link copied to clipboard
Gets the
MessageHandler
instance on this SASAdView
Link copied to clipboard
Given the current width of this SASAdView and the current creative loaded (if any), returns the recommended height (in pixels) for this SASAdView to respect the creative's ratio (portrait as well as landscape if different)
Given specified width in parameter and the current creative loaded (if any), returns the recommended height (in pixels) for this SASAdView to respect the creative's ratio (portrait as well as landscape if different)
Link copied to clipboard
Handle hardware keys keyUp events.
Link copied to clipboard
Installs the specified loader view in the application.
Link copied to clipboard
Returns whether an expanded ad should be closed when the ad is clicked.
Link copied to clipboard
Returns whether this SASAdView is in expanded state
Link copied to clipboard
Link copied to clipboard
Returns whether the Unity compatibility mode is enabled.
Link copied to clipboard
Wether the SDK activate or not zOrderOnTop value for internal VideoView
Link copied to clipboard
Loads the ad contained in the adElementWrapper of the given SASBiddingAdResponse.
Loads an ad in this SASAdView.
open fun loadAd(@NonNull adPlacement: SASAdPlacement, @Nullable bidderAdapter: SASBidderAdapter, @Nullable securedTransactionToken: String)
Loads an ad in this SASAdView using a bidder adapter.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Raise an error which is forwarded to the mraid javascript bridge.
Link copied to clipboard
Removes the specified loader view from the application.
Link copied to clipboard
open fun removeStateChangeListener(@NonNull stateListener: SASAdView.OnStateChangeListener): Boolean
Removes a specified OnStateChangeListener from this view
Link copied to clipboard
Link copied to clipboard
Sends a message to the WebView.
Link copied to clipboard
Allow or disallow the SASAdView to intercept Android back button action to close/collapse in full screen expand cases (instead of letting the host activity to decide) Default is true.
Link copied to clipboard
Sets a custom Bitmap for the close button used in all SASAdView instances.
Link copied to clipboard
Sets a custom Drawable for the close button used in all SASAdView instances.
Link copied to clipboard
Sets whether an expanded ad should be closed when the ad is clicked
Link copied to clipboard
Sets the FrameLayout parent container in which this
SASAdView
will place itself when switching to StateChangeEvent#VIEW_EXPANDED state.Link copied to clipboard
Sets the layout policy to apply when expanding this view (not used when expanding full screen)
Link copied to clipboard
Link copied to clipboard
Sets the View that is displayed on top of this ad view while the ad is being fetched
Link copied to clipboard
Sets the
MessageHandler
instance on this SASAdView
Link copied to clipboard
Sets the ViewGroup acting as boundaries for sticky mode.
Link copied to clipboard
Enable or disable the Unity compatibility mode.