public class NativeImageHelper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NativeImageHelper.ImageListener |
| Constructor and Description |
|---|
NativeImageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadImageView(java.lang.String url,
android.widget.ImageView imageView)
Helper method that takes an image url and loads the image into an image view.
|
static void |
preCacheImages(android.content.Context context,
java.util.List<java.lang.String> imageUrls,
NativeImageHelper.ImageListener imageListener)
Pre caches the given set of image urls.
|
public static void preCacheImages(android.content.Context context,
java.util.List<java.lang.String> imageUrls,
NativeImageHelper.ImageListener imageListener)
CustomEventNative.CustomEventNativeListener.onNativeAdLoaded(com.mopub.nativeads.BaseNativeAd). Doing so will
force images to cache before displaying the ad.public static void loadImageView(java.lang.String url,
android.widget.ImageView imageView)
url - The image urlimageView - The image view into which to load the image