AdropNativeAdView

class AdropNativeAdView: FrameLayout

Native ad view class responsible for displaying native ads to the user.


Public functions

fun setIconView(view: View, clickListener: OnClickListener?)

fun setIconView(view: View, clickListener: OnClickListener? = null)

Connect icon ImageView with AdropNativeAdView

When icon ImageView clicked, move to destination URL if a clickListener is not passed.

fun setHeadLineView(view: View, clickListener: OnClickListener?)

fun setHeadLineView(view: View, clickListener: OnClickListener? = null)

Connect headline TextView with AdropNativeAdView

When headline TextView clicked, move to destination URL if a clickListener is not passed.

fun setBodyView(view: View)

fun setBodyView(view: View)

Connect body TextView with AdropNativeAdView

fun setMediaView(view: AdropMediaView)

fun setMediaView(view: AdropMediaView)

Connect AdropMediaView with AdropNativeAdView

fun setAdvertiserView(view: View, clickListener: OnClickListener?)

fun setAdvertiserView(view: View, clickListener: OnClickListener? = null)

Connect advertiser TextView with AdropNativeAdView

When advertiser TextView clicked, move to destination URL if a clickListener is not passed.

fun setCallToActionView(view: View)

fun setCallToActionView(view: View)

Connect call to action Button or TextView with AdropNativeAdView

fun setNativeAd(ad: AdropNativeAd)

fun setNativeAd(ad: AdropNativeAd)

Display native ad creative

Last updated