SASBannerView

Top level banner view component that will act as a container for underlying rendered banner ads.

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attributeSet: AttributeSet?)

Types

Link copied to clipboard
interface BannerListener

Interface for listener objects that are notified of ad call outcome

Properties

Link copied to clipboard

The #SASAdPlacement on which the latest ad was successfully loaded, if any.

Link copied to clipboard

The currently installed #BannerListener on this #SASBannerView instance.

Link copied to clipboard

The FrameLayout parent container in which this #SASBannerView will place itself when expanded.

Link copied to clipboard

A #SASParallaxMargins instance representing the margins to apply to the parallax ads.

Functions

Link copied to clipboard
fun loadAd(adPlacement: SASAdPlacement)

Loads an ad for the specified placement

Link copied to clipboard
fun onDestroy()

This method must be called when the activity (that this view is attached to) is destroyed (typically in the onDestroy() method of the activity).