A B C D E G H I K L M N O P R S T U V 

A

AdapterHelper - Class in com.mopub.nativeads
Deprecated.
As of release 2.4, use MoPubAdAdapter or MoPubStreamAdPlacer instead
AdapterHelper(Context, int, int) - Constructor for class com.mopub.nativeads.AdapterHelper
Deprecated.
addClickTracker(String) - Method in class com.mopub.nativeads.BaseNativeAd
 
addClickTrackers(Object) - Method in class com.mopub.nativeads.BaseNativeAd
 
addCtaButton(TextView, View, String) - Static method in class com.mopub.nativeads.NativeRendererHelper
 
addExtra(String, Object) - Method in class com.mopub.nativeads.StaticNativeAd
 
addExtra(String, int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
addExtras(Map<String, Integer>) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
addFixedPosition(int) - Method in class com.mopub.nativeads.MoPubNativeAdPositioning.MoPubClientPositioning
Specifies a fixed ad position.
addImpressionTracker(String) - Method in class com.mopub.nativeads.BaseNativeAd
 
addImpressionTrackers(Object) - Method in class com.mopub.nativeads.BaseNativeAd
 
addPrivacyInformationIcon(ImageView, String, String) - Static method in class com.mopub.nativeads.NativeRendererHelper
Fills in the Privacy Information Icon with the specified image url and attaches a click listener for the clickthrough url.
addTextView(TextView, String) - Static method in class com.mopub.nativeads.NativeRendererHelper
 
addView(View, ImpressionInterface) - Method in class com.mopub.nativeads.ImpressionTracker
Tracks the given view for impressions.
AdRendererRegistry - Class in com.mopub.nativeads
A data structure providing methods to store and retrieve native ad renderers.
AdRendererRegistry() - Constructor for class com.mopub.nativeads.AdRendererRegistry
 
areAllItemsEnabled() - Method in class com.mopub.nativeads.MoPubAdAdapter
 

B

BaseNativeAd - Class in com.mopub.nativeads
This is the base class for implementations of all native ad formats.
BaseNativeAd() - Constructor for class com.mopub.nativeads.BaseNativeAd
 
BaseNativeAd.NativeEventListener - Interface in com.mopub.nativeads
 
bindAdView(NativeAd, View) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Given an ad and a view, attaches the ad data to the view and prepares the ad for display.
build() - Method in class com.mopub.nativeads.RequestParameters.Builder
 
build() - Method in class com.mopub.nativeads.ViewBinder.Builder
 

C

callToActionId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
clear(View) - Method in class com.mopub.nativeads.BaseNativeAd
Your BaseNativeAd subclass should implement this method if the network requires the developer to reset or clear state of the native ad after it goes off screen and before it is rendered again.
clear() - Method in class com.mopub.nativeads.ImpressionTracker
Immediately clear all views.
clear(View) - Method in class com.mopub.nativeads.NativeAd
Clears NativeAd state associated with this View.
clear(View) - Method in class com.mopub.nativeads.StaticNativeAd
 
clearAds() - Method in class com.mopub.nativeads.MoPubAdAdapter
Stops loading ads, immediately clearing any ads currently in the stream.
clearAds() - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Stops loading ads, immediately clearing any ads currently in the stream.
clearAds() - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Stops loading ads, immediately clearing any ads currently in the stream.
clearOnClickListener(View) - Method in class com.mopub.nativeads.NativeClickHandler
Clears the on click listener from all views in the the native ad view hierarchy.
ClickInterface - Interface in com.mopub.nativeads
This interface should be implemented by native ad formats that want to make use of the NativeClickHandler to track clicks and open click destinations.
clientPositioning() - Static method in class com.mopub.nativeads.MoPubNativeAdPositioning
com.mopub.nativeads - package com.mopub.nativeads
 
com.mopub.nativeads.factories - package com.mopub.nativeads.factories
 
compareTo(IntInterval) - Method in class com.mopub.nativeads.IntInterval
 
computeScrollOffset(LinearLayoutManager, RecyclerView.ViewHolder) - Static method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
CONTENT_VIEW_TYPE - Static variable in class com.mopub.nativeads.MoPubStreamAdPlacer
Constant representing that the view type for a given position is a regular content item instead of an ad.
create(String) - Static method in class com.mopub.nativeads.factories.CustomEventNativeFactory
 
createAdView(Context, ViewGroup) - Method in interface com.mopub.nativeads.MoPubAdRenderer
Creates a new view to be used as an ad.
createAdView(Context, ViewGroup) - Method in class com.mopub.nativeads.MoPubStaticNativeAdRenderer
 
createAdView(Context, ViewGroup) - Method in class com.mopub.nativeads.NativeAd
Renders the ad view.
CustomEventNative - Class in com.mopub.nativeads
CustomEventNative is a base class for custom events that support native ads.
CustomEventNative() - Constructor for class com.mopub.nativeads.CustomEventNative
 
CustomEventNative.CustomEventNativeListener - Interface in com.mopub.nativeads
 
CustomEventNativeFactory - Class in com.mopub.nativeads.factories
 
CustomEventNativeFactory() - Constructor for class com.mopub.nativeads.factories.CustomEventNativeFactory
 

D

deliverResponse(MoPubNativeAdPositioning.MoPubClientPositioning) - Method in class com.mopub.nativeads.PositioningRequest
 
desiredAssets(EnumSet<RequestParameters.NativeAdAsset>) - Method in class com.mopub.nativeads.RequestParameters.Builder
 
destroy() - Method in class com.mopub.nativeads.BaseNativeAd
Your BaseNativeAd subclass should implement this method if the network requires the developer to destroy or cleanup their native ad when they are permanently finished with it.
destroy() - Method in class com.mopub.nativeads.ImpressionTracker
 
destroy() - Method in class com.mopub.nativeads.MoPubAdAdapter
Destroys the ad adapter, preventing it from future use.
destroy() - Method in class com.mopub.nativeads.MoPubNative
 
destroy() - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
destroy() - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Destroys the ad placer, preventing it from future use.
destroy() - Method in class com.mopub.nativeads.NativeAd
Cleans up all NativeAd state.
destroy() - Method in class com.mopub.nativeads.StaticNativeAd
 

E

enableRepeatingPositions(int) - Method in class com.mopub.nativeads.MoPubNativeAdPositioning.MoPubClientPositioning
Enables showing ads ad at a repeated interval.
equals(int, int) - Method in class com.mopub.nativeads.IntInterval
For comparing intervals directly to this object.
equals(Object) - Method in class com.mopub.nativeads.IntInterval
 

G

getAdData(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns an ad data object, or null if there is no ad at this position.
getAdjustedCount(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns the number of items considering ads in the stream.
getAdjustedPosition(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns the position of an item considering ads in the stream.
getAdjustedPosition(int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Returns the position of an item considering ads in the stream.
getAdjustedPosition(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns the position of an item considering ads in the stream.
getAdRendererCount() - Method in class com.mopub.nativeads.AdRendererRegistry
 
getAdRendererForViewType(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
 
getAdUnitId() - Method in class com.mopub.nativeads.NativeAd
 
getAdView(View, ViewGroup, NativeAd, ViewBinder) - Method in class com.mopub.nativeads.AdapterHelper
Deprecated.
getAdView(View, ViewGroup, NativeAd) - Method in class com.mopub.nativeads.AdapterHelper
Deprecated.
getAdView(int, View, ViewGroup) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Gets the ad at the given position, or null if there is no ad at the given position.
getAdViewType(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
The ad view type for this position.
getAdViewTypeCount() - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns the number of ad view types that can be placed by this ad placer.
getBaseNativeAd() - Method in class com.mopub.nativeads.NativeAd
Returns the BaseNativeAd object for this NativeAd.
getCallToAction() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the Call To Action String (i.e.
getClickDestinationUrl() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the String url that the device will attempt to resolve when the ad is clicked.
getCount() - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns the number of items in your stream, including ads.
getDesiredAssets() - Method in class com.mopub.nativeads.RequestParameters
 
getExtra(String) - Method in class com.mopub.nativeads.StaticNativeAd
Given a particular String key, return the associated Object value from the ad's extras map.
getExtras() - Method in class com.mopub.nativeads.StaticNativeAd
Returns a copy of the extras map, reflecting additional ad content not reflected in any of the above hardcoded setters.
getIconImageUrl() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the String url corresponding to the ad's icon image.
getImpressionMinPercentageViewed() - Method in interface com.mopub.nativeads.ImpressionInterface
 
getImpressionMinPercentageViewed() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the minimum viewable percentage of the ad that must be onscreen for it to be considered visible.
getImpressionMinTimeViewed() - Method in interface com.mopub.nativeads.ImpressionInterface
 
getImpressionMinTimeViewed() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the minimum amount of time (in milliseconds) the ad that must be onscreen before an impression is recorded.
getItem(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
For ad items, returns an ad data object.
getItemCount() - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
getItemId(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
For ad items, returns an ID representing the ad.
getItemId(int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Returns a stable negative item ID for ad items & calls getItemId on your original adapter for non-ad items.
getItemViewType(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
For ad items, returns a number greater than or equal to the view type count for your underlying adapter.
getItemViewType(int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
getKeywords() - Method in class com.mopub.nativeads.RequestParameters
 
getLength() - Method in class com.mopub.nativeads.IntInterval
 
getLocation() - Method in class com.mopub.nativeads.RequestParameters
 
getMainImageUrl() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the String url corresponding to the ad's main image.
getMoPubAdRenderer() - Method in class com.mopub.nativeads.NativeAd
 
getOriginalCount(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns the original number of items considering ads in the stream.
getOriginalPosition(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns the original position of an item considering ads in the stream.
getOriginalPosition(int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Returns the original position of an item considering ads in the stream.
getOriginalPosition(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Returns the original position of an item considering ads in the stream.
getPrivacyInformationIconClickThroughUrl() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the Privacy Information click through url.
getPrivacyInformationIconImageUrl() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the Privacy Information image url.
getRendererForAd(BaseNativeAd) - Method in class com.mopub.nativeads.AdRendererRegistry
Returns the first registered ad renderer that supports rendering the native ad passed in.
getRendererForViewType(int) - Method in class com.mopub.nativeads.AdRendererRegistry
Returns the renderer corresponding to view type passed in.
getRendererIterable() - Method in class com.mopub.nativeads.AdRendererRegistry
 
getStarRating() - Method in class com.mopub.nativeads.StaticNativeAd
For app install ads, this returns the associated star rating (on a 5 star scale) for the advertised app.
getStart() - Method in class com.mopub.nativeads.IntInterval
 
getText() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the String corresponding to the ad's body text.
getTitle() - Method in class com.mopub.nativeads.StaticNativeAd
Returns the String corresponding to the ad's title.
getView(int, View, ViewGroup) - Method in class com.mopub.nativeads.MoPubAdAdapter
For ad items, returns an ad View for the underlying position.
getViewTypeCount() - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns the view type count of your original adapter, plus the the number of possible view types for ads.
getViewTypeForAd(NativeAd) - Method in class com.mopub.nativeads.AdRendererRegistry
Returns the view type of the first registered ad renderer that supports rendering the NativeAd passed in.

H

handleClick(View) - Method in interface com.mopub.nativeads.ClickInterface
 
handleClick(View) - Method in class com.mopub.nativeads.StaticNativeAd
Your StaticNativeAd subclass should implement this method if the network requires the developer to explicitly handle click events of views rendered to screen.
hashCode() - Method in class com.mopub.nativeads.IntInterval
 
hasStableIds() - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns the value returned by hasStableIds() on your original adapter.

I

iconImageId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
ImpressionInterface - Interface in com.mopub.nativeads
This interface should be implemented by native ad formats that want to make use of the ImpressionTracker to track impressions.
ImpressionTracker - Class in com.mopub.nativeads
Impression tracker used to call ImpressionInterface.recordImpression(View) when a percentage of a native ad has been on screen for a duration of time.
ImpressionTracker(Context) - Constructor for class com.mopub.nativeads.ImpressionTracker
 
insertItem(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Inserts a content row at the given position, adjusting ad positions accordingly.
insertItem(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Inserts a content row at the given position, adjusting ad positions accordingly.
instance - Static variable in class com.mopub.nativeads.factories.CustomEventNativeFactory
 
internalCreate(Class<? extends CustomEventNative>) - Method in class com.mopub.nativeads.factories.CustomEventNativeFactory
 
IntInterval - Class in com.mopub.nativeads
Stores an integer interval in the form of a start and a length.
IntInterval(int, int) - Constructor for class com.mopub.nativeads.IntInterval
 
isAd(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Whether the given position is an ad.
isAd(int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Whether the given position is an ad.
isAd(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Whether the given position is an ad.
isAdPosition(int) - Method in class com.mopub.nativeads.AdapterHelper
Deprecated.
isDestroyed() - Method in class com.mopub.nativeads.NativeAd
 
isEmpty() - Method in class com.mopub.nativeads.MoPubAdAdapter
Returns whether the adapter is empty, calling through to your original adapter.
isEnabled(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
 
isImpressionRecorded() - Method in interface com.mopub.nativeads.ImpressionInterface
 
isImpressionRecorded() - Method in class com.mopub.nativeads.StaticNativeAd
 

K

keywords(String) - Method in class com.mopub.nativeads.RequestParameters.Builder
 

L

loadAds(String) - Method in class com.mopub.nativeads.MoPubAdAdapter
Start loading ads from the MoPub server.
loadAds(String, RequestParameters) - Method in class com.mopub.nativeads.MoPubAdAdapter
Start loading ads from the MoPub server, using the given request targeting information.
loadAds(String) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Start loading ads from the MoPub server.
loadAds(String, RequestParameters) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Start loading ads from the MoPub server, using the given request targeting information.
loadAds(String) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Start loading ads from the MoPub server.
loadAds(String, RequestParameters) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Start loading ads from the MoPub server, using the given request targeting information.
loadImageView(String, ImageView) - Static method in class com.mopub.nativeads.NativeImageHelper
Helper method that takes an image url and loads the image into an image view.
loadNativeAd(Context, CustomEventNative.CustomEventNativeListener, Map<String, Object>, Map<String, String>) - Method in class com.mopub.nativeads.CustomEventNative
When the MoPub SDK receives a response indicating it should load a custom event, it will send this message to your custom event class.
loadNativeAd(Context, CustomEventNative.CustomEventNativeListener, Map<String, Object>, Map<String, String>) - Method in class com.mopub.nativeads.MoPubCustomEventNative
 
location(Location) - Method in class com.mopub.nativeads.RequestParameters.Builder
 

M

mainImageId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
makeRequest() - Method in class com.mopub.nativeads.MoPubNative
 
makeRequest(RequestParameters) - Method in class com.mopub.nativeads.MoPubNative
 
makeRequest(RequestParameters, Integer) - Method in class com.mopub.nativeads.MoPubNative
 
MoPubAdAdapter - Class in com.mopub.nativeads
MoPubAdAdapter facilitates placing ads into an Android ListView or other widgets that use a ListAdapter.
MoPubAdAdapter(Activity, Adapter) - Constructor for class com.mopub.nativeads.MoPubAdAdapter
Creates a new MoPubAdAdapter object.
MoPubAdAdapter(Activity, Adapter, MoPubNativeAdPositioning.MoPubServerPositioning) - Constructor for class com.mopub.nativeads.MoPubAdAdapter
Creates a new MoPubAdAdapter object, using server positioning.
MoPubAdAdapter(Activity, Adapter, MoPubNativeAdPositioning.MoPubClientPositioning) - Constructor for class com.mopub.nativeads.MoPubAdAdapter
Creates a new MoPubAdAdapter object, using client positioning.
MoPubAdRenderer<T extends BaseNativeAd> - Interface in com.mopub.nativeads
An interface for creating ad views and rendering them using ad data.
MoPubCustomEventNative - Class in com.mopub.nativeads
 
MoPubCustomEventNative() - Constructor for class com.mopub.nativeads.MoPubCustomEventNative
 
MoPubNative - Class in com.mopub.nativeads
 
MoPubNative(Context, String, MoPubNative.MoPubNativeNetworkListener) - Constructor for class com.mopub.nativeads.MoPubNative
 
MoPubNative(Context, String, AdRendererRegistry, MoPubNative.MoPubNativeNetworkListener) - Constructor for class com.mopub.nativeads.MoPubNative
 
MoPubNative.MoPubNativeNetworkListener - Interface in com.mopub.nativeads
 
MoPubNativeAdLoadedListener - Interface in com.mopub.nativeads
A listener for determining when ads are loaded into an ad Placer
MoPubNativeAdPositioning - Class in com.mopub.nativeads
Provides factory methods for setting up native ad positions.
MoPubNativeAdPositioning() - Constructor for class com.mopub.nativeads.MoPubNativeAdPositioning
 
MoPubNativeAdPositioning.MoPubClientPositioning - Class in com.mopub.nativeads
Allows hard-coding ad positions into your app.
MoPubNativeAdPositioning.MoPubClientPositioning() - Constructor for class com.mopub.nativeads.MoPubNativeAdPositioning.MoPubClientPositioning
 
MoPubNativeAdPositioning.MoPubServerPositioning - Class in com.mopub.nativeads
Allows the SDK to connect to the MoPub server in order to determine ad positions.
MoPubNativeAdPositioning.MoPubServerPositioning() - Constructor for class com.mopub.nativeads.MoPubNativeAdPositioning.MoPubServerPositioning
 
MoPubRecyclerAdapter - Class in com.mopub.nativeads
 
MoPubRecyclerAdapter(Activity, RecyclerView.Adapter) - Constructor for class com.mopub.nativeads.MoPubRecyclerAdapter
 
MoPubRecyclerAdapter(Activity, RecyclerView.Adapter, MoPubNativeAdPositioning.MoPubServerPositioning) - Constructor for class com.mopub.nativeads.MoPubRecyclerAdapter
 
MoPubRecyclerAdapter(Activity, RecyclerView.Adapter, MoPubNativeAdPositioning.MoPubClientPositioning) - Constructor for class com.mopub.nativeads.MoPubRecyclerAdapter
 
MoPubRecyclerAdapter.ContentChangeStrategy - Enum in com.mopub.nativeads
 
MoPubRecyclerViewHolder - Class in com.mopub.nativeads
 
MoPubRecyclerViewHolder(View) - Constructor for class com.mopub.nativeads.MoPubRecyclerViewHolder
 
MoPubStaticNativeAdRenderer - Class in com.mopub.nativeads
An implementation of MoPubAdRenderer for rendering native ads.
MoPubStaticNativeAdRenderer(ViewBinder) - Constructor for class com.mopub.nativeads.MoPubStaticNativeAdRenderer
Constructs a native ad renderer with a view binder.
MoPubStreamAdPlacer - Class in com.mopub.nativeads
MoPubStreamAdPlacer facilitates loading ads and placing them into a content stream.
MoPubStreamAdPlacer(Activity) - Constructor for class com.mopub.nativeads.MoPubStreamAdPlacer
Creates a new MoPubStreamAdPlacer object.
MoPubStreamAdPlacer(Activity, MoPubNativeAdPositioning.MoPubServerPositioning) - Constructor for class com.mopub.nativeads.MoPubStreamAdPlacer
Creates a new MoPubStreamAdPlacer object, using server positioning.
MoPubStreamAdPlacer(Activity, MoPubNativeAdPositioning.MoPubClientPositioning) - Constructor for class com.mopub.nativeads.MoPubStreamAdPlacer
Creates a new MoPubStreamAdPlacer object, using client positioning.
moveItem(int, int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Moves the content row at the given position adjusting ad positions accordingly.

N

NativeAd - Class in com.mopub.nativeads
This class represents a native ad instance returned from the MoPub Ad Server, MoPub Exchange, or a mediated native ad network.
NativeAd(Context, String, String, String, BaseNativeAd, MoPubAdRenderer) - Constructor for class com.mopub.nativeads.NativeAd
 
NativeAd.MoPubNativeEventListener - Interface in com.mopub.nativeads
Listen for MoPub specific click and impression events
NativeClickHandler - Class in com.mopub.nativeads
A collection of methods to help with detecting clicks, and handling click destination urls for native ads.
NativeClickHandler(Context) - Constructor for class com.mopub.nativeads.NativeClickHandler
 
NativeClickHandler(Context, String) - Constructor for class com.mopub.nativeads.NativeClickHandler
 
NativeErrorCode - Enum in com.mopub.nativeads
 
NativeImageHelper - Class in com.mopub.nativeads
Collection of helper methods to assist with image downloading and displaying
NativeImageHelper() - Constructor for class com.mopub.nativeads.NativeImageHelper
 
NativeImageHelper.ImageListener - Interface in com.mopub.nativeads
 
NativeRendererHelper - Class in com.mopub.nativeads
A set of helper methods for Native Ad Rendering
NativeRendererHelper() - Constructor for class com.mopub.nativeads.NativeRendererHelper
 
NO_REPEAT - Static variable in class com.mopub.nativeads.MoPubNativeAdPositioning.MoPubClientPositioning
Constant indicating that ad positions should not repeat.
notifyAdClicked() - Method in class com.mopub.nativeads.BaseNativeAd
Notifies the SDK that the user has clicked the ad.
notifyAdImpressed() - Method in class com.mopub.nativeads.BaseNativeAd
Notifies the SDK that the ad has been shown.

O

onAdClicked() - Method in interface com.mopub.nativeads.BaseNativeAd.NativeEventListener
 
onAdImpressed() - Method in interface com.mopub.nativeads.BaseNativeAd.NativeEventListener
 
onAdLoaded(int) - Method in interface com.mopub.nativeads.MoPubNativeAdLoadedListener
Called when an ad is loaded at the specified position.
onAdRemoved(int) - Method in interface com.mopub.nativeads.MoPubNativeAdLoadedListener
Called when an ad is removed at the specified position.
onAttachedToRecyclerView(RecyclerView) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onClick(View) - Method in interface com.mopub.nativeads.NativeAd.MoPubNativeEventListener
 
onCreateViewHolder(ViewGroup, int) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onDetachedFromRecyclerView(RecyclerView) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onImagesCached() - Method in interface com.mopub.nativeads.NativeImageHelper.ImageListener
Called when images are successfully cached.
onImagesFailedToCache(NativeErrorCode) - Method in interface com.mopub.nativeads.NativeImageHelper.ImageListener
Called when images failed to cache.
onImpression(View) - Method in interface com.mopub.nativeads.NativeAd.MoPubNativeEventListener
 
onNativeAdFailed(NativeErrorCode) - Method in interface com.mopub.nativeads.CustomEventNative.CustomEventNativeListener
Your custom event subclass must call this method when it fails to load a native ad.
onNativeAdLoaded(BaseNativeAd) - Method in interface com.mopub.nativeads.CustomEventNative.CustomEventNativeListener
Your custom event subclass must call this method when it successfully loads a native ad.
onNativeFail(NativeErrorCode) - Method in interface com.mopub.nativeads.MoPubNative.MoPubNativeNetworkListener
 
onNativeLoad(NativeAd) - Method in interface com.mopub.nativeads.MoPubNative.MoPubNativeNetworkListener
 
onViewAttachedToWindow(RecyclerView.ViewHolder) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onViewDetachedFromWindow(RecyclerView.ViewHolder) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
openClickDestinationUrl(String, View) - Method in class com.mopub.nativeads.NativeClickHandler
Handles resolving and opening the click destination url.

P

parseNetworkResponse(NetworkResponse) - Method in class com.mopub.nativeads.PositioningRequest
 
placeAdsInRange(int, int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Inserts ads that should appear in the given range.
PositioningRequest - Class in com.mopub.nativeads
 
PositioningRequest(String, Response.Listener<MoPubNativeAdPositioning.MoPubClientPositioning>, Response.ErrorListener) - Constructor for class com.mopub.nativeads.PositioningRequest
 
preCacheImages(Context, List<String>, NativeImageHelper.ImageListener) - Static method in class com.mopub.nativeads.NativeImageHelper
Pre caches the given set of image urls.
prepare(View) - Method in class com.mopub.nativeads.BaseNativeAd
Your BaseNativeAd subclass should implement this method if the network requires the developer to prepare state for recording an impression or click before a view is rendered to screen.
prepare(View) - Method in class com.mopub.nativeads.NativeAd
Prepares the NativeAd to be seen on screen.
prepare(View) - Method in class com.mopub.nativeads.StaticNativeAd
 
privacyInformationIconImageId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 

R

recordImpression(View) - Method in interface com.mopub.nativeads.ImpressionInterface
 
recordImpression(View) - Method in class com.mopub.nativeads.StaticNativeAd
Your StaticNativeAd subclass should implement this method if the network requires the developer to explicitly record an impression of a view rendered to screen.
refreshAds(ListView, String) - Method in class com.mopub.nativeads.MoPubAdAdapter
Refreshes ads in the given ListView while preserving the scroll position.
refreshAds(ListView, String, RequestParameters) - Method in class com.mopub.nativeads.MoPubAdAdapter
Refreshes ads in the given ListView while preserving the scroll position.
refreshAds(String) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Refreshes ads in the adapter while preserving the scroll position.
refreshAds(String, RequestParameters) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Refreshes ads in the adapter while preserving the scroll position.
registerAdRenderer(MoPubAdRenderer) - Method in class com.mopub.nativeads.AdRendererRegistry
Registers an ad renderer for rendering a specific native ad format.
registerAdRenderer(MoPubAdRenderer) - Method in class com.mopub.nativeads.MoPubAdAdapter
Registers a MoPubStaticNativeAdRenderer, supporting a specific native ad format, to use when displaying ads in your stream.
registerAdRenderer(MoPubAdRenderer) - Method in class com.mopub.nativeads.MoPubNative
Registers an ad renderer for rendering a specific native ad format.
registerAdRenderer(MoPubAdRenderer) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Registers an ad renderer for rendering a specific native ad format.
registerAdRenderer(MoPubAdRenderer) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Registers an ad renderer for rendering a specific native ad format in your stream.
removeAdsInRange(int, int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Removes ads in the given range from [originalStartPosition, originalEndPosition).
removeItem(int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Removes the content row at the given position, adjusting ad positions accordingly.
removeItem(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Removes the content row at the given position, adjusting ad positions accordingly.
removeView(View) - Method in class com.mopub.nativeads.ImpressionTracker
 
renderAdView(View, T) - Method in interface com.mopub.nativeads.MoPubAdRenderer
Renders a view created by MoPubAdRenderer.createAdView(android.content.Context, android.view.ViewGroup) by filling it with ad data.
renderAdView(View, StaticNativeAd) - Method in class com.mopub.nativeads.MoPubStaticNativeAdRenderer
 
renderAdView(View) - Method in class com.mopub.nativeads.NativeAd
 
RequestParameters - Class in com.mopub.nativeads
 
RequestParameters.Builder - Class in com.mopub.nativeads
 
RequestParameters.Builder() - Constructor for class com.mopub.nativeads.RequestParameters.Builder
 
RequestParameters.NativeAdAsset - Enum in com.mopub.nativeads
 

S

serverPositioning() - Static method in class com.mopub.nativeads.MoPubNativeAdPositioning
setAdLoadedListener(MoPubNativeAdLoadedListener) - Method in class com.mopub.nativeads.MoPubAdAdapter
Sets a listener that will be called after the SDK loads new ads from the server and places them into your stream.
setAdLoadedListener(MoPubNativeAdLoadedListener) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Sets a listener that will be called after the SDK loads new ads from the server and places them into your stream.
setAdLoadedListener(MoPubNativeAdLoadedListener) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Sets a listener that will be called after the SDK loads new ads from the server and places them into your stream.
setCallToAction(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setClickDestinationUrl(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setContentChangeStrategy(MoPubRecyclerAdapter.ContentChangeStrategy) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
Sets the strategy this adapter should use for moving ads when content is added or removed from the wrapped original adapter.
setHasStableIds(boolean) - Method in class com.mopub.nativeads.MoPubRecyclerAdapter
 
setIconImageUrl(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setImpressionMinTimeViewed(int) - Method in class com.mopub.nativeads.StaticNativeAd
 
setImpressionRecorded() - Method in interface com.mopub.nativeads.ImpressionInterface
 
setImpressionRecorded() - Method in class com.mopub.nativeads.StaticNativeAd
 
setInstance(CustomEventNativeFactory) - Static method in class com.mopub.nativeads.factories.CustomEventNativeFactory
Deprecated.
setItemCount(int) - Method in class com.mopub.nativeads.MoPubStreamAdPlacer
Sets the original number of items in your stream.
setLength(int) - Method in class com.mopub.nativeads.IntInterval
 
setLocalExtras(Map<String, Object>) - Method in class com.mopub.nativeads.MoPubNative
 
setMainImageUrl(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setMoPubNativeEventListener(NativeAd.MoPubNativeEventListener) - Method in class com.mopub.nativeads.NativeAd
 
setNativeEventListener(BaseNativeAd.NativeEventListener) - Method in class com.mopub.nativeads.BaseNativeAd
 
setOnClickListener(ListView, AdapterView.OnItemClickListener) - Method in class com.mopub.nativeads.MoPubAdAdapter
Sets an on click listener for the given ListView, automatically adjusting the listener callback positions based on ads in the adapter.
setOnClickListener(View, ClickInterface) - Method in class com.mopub.nativeads.NativeClickHandler
Sets the on click listener on all views in the native ad view hierarchy to invoke ClickInterface.handleClick(View) when a view in the view hierarchy is clicked.
setOnItemLongClickListener(ListView, AdapterView.OnItemLongClickListener) - Method in class com.mopub.nativeads.MoPubAdAdapter
Sets an on long click listener for the given ListView, automatically adjusting the listener callback positions based on ads in the adapter.
setOnItemSelectedListener(ListView, AdapterView.OnItemSelectedListener) - Method in class com.mopub.nativeads.MoPubAdAdapter
Sets an on item selected listener for the given ListView, automatically adjusting the listener callback positions based on ads in the adapter.
setPrivacyInformationIconClickThroughUrl(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setPrivacyInformationIconImageUrl(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setSelection(ListView, int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Sets the currently selected item in the ListView, automatically adjusting the position based on ads in the adapter.
setStarRating(Double) - Method in class com.mopub.nativeads.StaticNativeAd
 
setStart(int) - Method in class com.mopub.nativeads.IntInterval
 
setText(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
setTitle(String) - Method in class com.mopub.nativeads.StaticNativeAd
 
shiftedCount(int) - Method in class com.mopub.nativeads.AdapterHelper
Deprecated.
shiftedPosition(int) - Method in class com.mopub.nativeads.AdapterHelper
Deprecated.
smoothScrollToPosition(ListView, int) - Method in class com.mopub.nativeads.MoPubAdAdapter
Scrolls an item in the ListView, automatically adjusting the position based on ads in the adapter.
StaticNativeAd - Class in com.mopub.nativeads
This the base class for implementations of the static native ad format.
StaticNativeAd() - Constructor for class com.mopub.nativeads.StaticNativeAd
 
supports(BaseNativeAd) - Method in interface com.mopub.nativeads.MoPubAdRenderer
Determines if this renderer supports the type of native ad passed in.
supports(BaseNativeAd) - Method in class com.mopub.nativeads.MoPubStaticNativeAdRenderer
 

T

textId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
titleId(int) - Method in class com.mopub.nativeads.ViewBinder.Builder
 
toString() - Method in class com.mopub.nativeads.IntInterval
 
toString() - Method in class com.mopub.nativeads.NativeAd
 
toString() - Method in enum com.mopub.nativeads.NativeErrorCode
 
toString() - Method in enum com.mopub.nativeads.RequestParameters.NativeAdAsset
 

U

updateExtras(View, Map<String, Integer>, Map<String, Object>) - Static method in class com.mopub.nativeads.NativeRendererHelper
 

V

valueOf(String) - Static method in enum com.mopub.nativeads.MoPubRecyclerAdapter.ContentChangeStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mopub.nativeads.NativeErrorCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.mopub.nativeads.RequestParameters.NativeAdAsset
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.mopub.nativeads.MoPubRecyclerAdapter.ContentChangeStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mopub.nativeads.NativeErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.mopub.nativeads.RequestParameters.NativeAdAsset
Returns an array containing the constants of this enum type, in the order they are declared.
ViewBinder - Class in com.mopub.nativeads
 
ViewBinder.Builder - Class in com.mopub.nativeads
 
ViewBinder.Builder(int) - Constructor for class com.mopub.nativeads.ViewBinder.Builder
 
A B C D E G H I K L M N O P R S T U V