BannerListener

interface BannerListener

Interface definition for Objects that will listen and react to SASBannerView lifecycle events

Functions

Link copied to clipboard
abstract fun onBannerAdClicked(@NonNull bannerView: SASBannerView)
Method called when a click is recorded on the SASBannerView
Link copied to clipboard
abstract fun onBannerAdClosed(@NonNull bannerView: SASBannerView)
Method called when the SASBannerView was closed (as per MRAID specifications), meaning it is no longer visible
Link copied to clipboard
abstract fun onBannerAdCollapsed(@NonNull bannerView: SASBannerView)
Method called when the SASBannerView was collapsed to its default state (as per MRAID specifications)
Link copied to clipboard
abstract fun onBannerAdExpanded(@NonNull bannerView: SASBannerView)
Method called when the SASBannerView was expanded to full screen (as per MRAID specifications)
Link copied to clipboard
Method called when the ad loading request failed for the SASBannerView
Link copied to clipboard
abstract fun onBannerAdLoaded(@NonNull bannerView: SASBannerView, @NonNull adElement: SASAdElement)
Method called when an ad was successfully loaded for the SASBannerView
Link copied to clipboard
abstract fun onBannerAdResized(@NonNull bannerView: SASBannerView)
Method called when the SASBannerView was resized (as per MRAID specifications)
Link copied to clipboard
abstract fun onBannerAdVideoEvent(@NonNull bannerView: SASBannerView, videoEvent: Int)
Method called when video events are fired during a video ad playing in the SASBannerView.