public class

NativeAdView

extends FrameLayout
  android.widget.FrameLayout
  ↳co.adcel.nativeads.NativeAdView

Class Overview

View-class for display native ad

Summary

Nested Classes

class - NativeAd - class that provides access to the native advertising data.
interface - OnAdClickListener - interface of ad click listener.
class - MediaLayout - class , Image/Video container. 

Public Methods

void - setOnAdClickListener(OnAdClickListener onAdClickListener) - Sets ad click listener
void - setNativeAd(NativeAd nativeAd) - Sets current object of native ad
NativeAd - getNativeAd() - Gets current object of native ad
void - setTitleView(View titleView) - Sets titleView
View - getTitleView() - Gets titleView
void - setDescriptionTextView(View descriptionTextView) - Sets descriptionTextView View - getDescriptionTextView() - Gets descriptionTextView
void - setIconView(View iconView) - Sets iconView
View - getIconView() - Gets iconView
void - setMediaLayout(MediaLayout mediaLayout) - Sets Image/Video container MediaLayout - getMediaLayout() - Gets Image/Video container
void - setCtaTextView(View ctaTextView) - Sets ctaTextView
View - getCtaTextView() - Gets ctaTextView
void - setStarRaitingView(View starRatingView) - Sets starRatingView
View - getStarRaitingView() - Gets starRatingView 

Public Methods

void setOnAdClickListener(OnAdClickListener onAdClickListener)

Sets ad click listener

Parameters

onAdClickListener - implementation of an ad click listener

void setNativeAd(NativeAd nativeAd)

Sets current object of native ad

Parameters

nativeAd - object of native ad

NativeAd getNativeAd()

Returns

current object of native ad

void setTitleView(View titleView)

Sets titleView

Parameters

titleView - title view

View getTitleView()

Returns

title view

void setDescriptionTextView(View descriptionTextView)

Sets descriptionTextView

Parameters

descriptionTextView - description view

View getDescriptionTextView()

Returns

description view

void setIconView(View iconView)

Sets iconView

Parameters

iconView - icon view

View getIconView()

Returns

icon view

void setMediaLayout(MediaLayout mediaLayout)

Sets Image/Video container

Parameters

mediaLayout - Image/Video container

MediaLayout getMediaLayout()

Returns

Image/Video container

void setCtaTextView(View ctaTextView)

Sets click to action view

Parameters

ctaTextView - click to action view

View getCtaTextView()

Returns

click to action view

void setStarRaitingView(View starRatingView)

Sets starRatingView

Parameters

starRatingView - rating view

View getStarRaitingView()

Returns

rating view

Did this answer your question?