NativeBannerView

NativeBannerView provides template for displaying native ads. Banner appearance such as asset offsets, fonts, colors, sizes, e.g. may be confugured with @p applyAppearance: method.

Constructors

Link copied to clipboard
constructor(context: Context)

Constructs a new NativeBannerView programmatically.

constructor(context: Context, attrs: AttributeSet?)

Constructs a new NativeBannerView from XML layout file.

constructor(context: Context, attrs: AttributeSet?, @AttrRes defStyleAttr: Int)

Constructs a new NativeBannerView from XML layout file.

Functions

Link copied to clipboard
fun applyAppearance(templateAppearance: NativeTemplateAppearance)

Use this method to change default appearance.

Link copied to clipboard
fun setAd(nativeAd: NativeAd)

Configures NativeBannerView with native ad's content.