public final class NativeAdLoader extends BaseAd
NativeAd (for example, user's gender
and age, autoloading images and videos). There is no guarantee that the number of banners
specified in the COUNT parameter will be loaded - this parameter indicates the maximum number
of banners that you want to receive.| Modifier and Type | Class and Description |
|---|---|
static interface |
NativeAdLoader.OnLoad |
adConfig, metricFactory| Modifier and Type | Method and Description |
|---|---|
int |
getCachePolicy()
Retrieve current cachePolicy
|
NativeAdLoader |
load()
Method responsible for loading data.
|
static NativeAdLoader |
newLoader(int slotId,
int bannersCount,
android.content.Context context)
The static constructor of the object.
|
void |
setCachePolicy(int cachePolicy)
By default, images and videos are preloaded.
|
NativeAdLoader |
setOnLoad(NativeAdLoader.OnLoad onLoad)
Set listener for loading event
|
getCustomParams, isLoadCalled@NonNull public static NativeAdLoader newLoader(int slotId, int bannersCount, @NonNull android.content.Context context)
slotId - slot numberbannersCount - maximum number of banners that you want to receive.context - application context@UiThread @NonNull public NativeAdLoader setOnLoad(@Nullable NativeAdLoader.OnLoad onLoad)
onLoad - listener instance, can be nullpublic int getCachePolicy()
CachePolicypublic void setCachePolicy(int cachePolicy)
cachePolicy - cache policy neededCachePolicy@UiThread @NonNull public NativeAdLoader load()
NativeBannerAdLoader.OnLoad