public final class NativeBannerAdLoader extends BaseAd
NativeBannerAd (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 |
NativeBannerAdLoader.OnLoad |
adConfig, metricFactory| Modifier and Type | Method and Description |
|---|---|
int |
getCachePolicy()
Retrieve current cachePolicy
|
NativeBannerAdLoader |
load()
Method responsible for loading data.
|
static NativeBannerAdLoader |
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.
|
NativeBannerAdLoader |
setOnLoad(NativeBannerAdLoader.OnLoad onLoad)
Set listener for loading event
|
getCustomParams, isLoadCalled@NonNull public static NativeBannerAdLoader 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 NativeBannerAdLoader setOnLoad(@Nullable NativeBannerAdLoader.OnLoad onLoad)
onLoad - listener instance, can be nullpublic int getCachePolicy()
CachePolicypublic void setCachePolicy(int cachePolicy)
cachePolicy - cache policy neededCachePolicy@UiThread @NonNull public NativeBannerAdLoader load()
NativeBannerAdLoader.OnLoad