public final class NativeAppwallAd extends BaseAd
| Modifier and Type | Class and Description |
|---|---|
static interface |
NativeAppwallAd.AppwallAdListener |
adConfig, metricFactory| Constructor and Description |
|---|
NativeAppwallAd(int slotId,
android.content.Context context)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Close, destroy the ad and free resources
|
void |
dismiss()
Closes Ad Activity
|
java.util.ArrayList<NativeAppwallBanner> |
getBanners()
Receiving loaded banners.
|
long |
getCachePeriod() |
NativeAppwallAd.AppwallAdListener |
getListener()
Get events listener of an advertisement
|
java.lang.String |
getTitle() |
int |
getTitleBackgroundColor() |
int |
getTitleSupplementaryColor() |
int |
getTitleTextColor() |
void |
handleBannerClick(NativeAppwallBanner banner)
Handling a click on a banner in the case of a custom implementation of the AppWall list
(without using AppwallAdView).
|
void |
handleBannerShow(NativeAppwallBanner banner)
Send a banner display of your own AppWall list implementation (without using AppwallAdView).
|
void |
handleBannersShow(java.util.List<NativeAppwallBanner> banners)
Send a banners display of your own AppWall list implementation (without using AppwallAdView).
|
boolean |
hasNotifications()
Checking for banner notifications
|
boolean |
isAutoLoadImages() |
boolean |
isHideStatusBarInDialog() |
void |
load()
Start loading ads.
|
static void |
loadImageToView(ImageData imageData,
android.widget.ImageView view)
Asynchronously loads imageData to view.
|
java.lang.String |
prepareBannerClickLink(NativeAppwallBanner banner)
Prepares click, removes notification from banner
|
void |
registerAppwallAdView(AppwallAdView view)
Registration of the
AppwallAdView component for displaying the list of ads. |
void |
setAutoLoadImages(boolean autoLoadImages) |
void |
setCachePeriod(long cachePeriod)
Returns time, during which the ad cache will be valid.
|
void |
setHideStatusBarInDialog(boolean hideStatusBarInDialog) |
void |
setListener(NativeAppwallAd.AppwallAdListener listener)
Set events listener of an advertisement
Must be called before
load() |
void |
setTitle(java.lang.String title) |
void |
setTitleBackgroundColor(int titleBackgroundColor)
Setting the background color of the Appwall creative's header if it is displayed in the
Activity
|
void |
setTitleSupplementaryColor(int titleSupplementaryColor)
Setting an additional background color for the Appwall creative header, if it is displayed in
the separate Activity.
|
void |
setTitleTextColor(int titleTextColor)
Setting the color of the Appwall creative's header if it is displayed in the
Activity
|
void |
show()
Showing Ad creative in the Activity
|
void |
unregisterAppwallAdView()
View de-registration.
|
getCustomParams, isLoadCalledpublic NativeAppwallAd(int slotId,
@NonNull
android.content.Context context)
slotId - your slot idcontext - app contextpublic static void loadImageToView(@NonNull
ImageData imageData,
@NonNull
android.widget.ImageView view)
imageData - image to downloadview - ImageViewImageData,
ImageView@Nullable public NativeAppwallAd.AppwallAdListener getListener()
NativeAppwallAd.AppwallAdListenerpublic void setListener(@Nullable
NativeAppwallAd.AppwallAdListener listener)
load()NativeAppwallAd.AppwallAdListenerpublic boolean isHideStatusBarInDialog()
public void setHideStatusBarInDialog(boolean hideStatusBarInDialog)
hideStatusBarInDialog - On/off hiding the status of the bar when shown through the
dialog.public void setAutoLoadImages(boolean autoLoadImages)
autoLoadImages - on/off loading images on ad requestpublic boolean isAutoLoadImages()
public long getCachePeriod()
public void setCachePeriod(long cachePeriod)
cachePeriod - value in milliseconds@NonNull public java.util.ArrayList<NativeAppwallBanner> getBanners()
load()@NonNull public java.lang.String getTitle()
public void setTitle(@NonNull
java.lang.String title)
title - Sets the title of the Appwall creative if it is displayed in the Activityshow()public int getTitleBackgroundColor()
public void setTitleBackgroundColor(int titleBackgroundColor)
titleBackgroundColor - title background colorshow()public int getTitleSupplementaryColor()
public void setTitleSupplementaryColor(int titleSupplementaryColor)
titleSupplementaryColor - title supplementary colorpublic int getTitleTextColor()
public void setTitleTextColor(int titleTextColor)
titleTextColor - title colorshow()public void load()
setListener(AppwallAdListener)public boolean hasNotifications()
public void registerAppwallAdView(@NonNull
AppwallAdView view)
AppwallAdView component for displaying the list of ads.
Registration includes setting tracking clicks and impressions of list banners.view - view to registerAppwallAdViewpublic void unregisterAppwallAdView()
public void show()
public void dismiss()
public void destroy()
public void handleBannerClick(NativeAppwallBanner banner)
banner - the model of the banner to be clicked@Nullable public java.lang.String prepareBannerClickLink(NativeAppwallBanner banner)
banner - banner modelpublic void handleBannersShow(@NonNull
java.util.List<NativeAppwallBanner> banners)
banners - list of banners to showpublic void handleBannerShow(@NonNull
NativeAppwallBanner banner)
banner - to show