Android APIs
public abstract class

NativeAdView

extends FrameLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ com.google.android.gms.ads.formats.NativeAdView
Known Direct Subclasses

Class Overview

The root view for all Google native ads.

Summary

[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
NativeAdView(Context context)
NativeAdView(Context context, AttributeSet attrs)
NativeAdView(Context context, AttributeSet attrs, int defStyleAttr)
NativeAdView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void destroy()
Destroy the native ad view.
void setNativeAd(NativeAd ad)
Sets the NativeAd that this view is currently displaying.
[Expand]
Inherited Methods
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public NativeAdView (Context context)

public NativeAdView (Context context, AttributeSet attrs)

public NativeAdView (Context context, AttributeSet attrs, int defStyleAttr)

public NativeAdView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public void destroy ()

Destroy the native ad view. No other methods should be called on the ad view after destroy() is called.

public void setNativeAd (NativeAd ad)

Sets the NativeAd that this view is currently displaying.

Parameters
ad the native ad that the view is currently displaying