public class SingleAdAdapter
extends <any>
AdsManager
* getAdsLoader from AdsPlugin
* loadAds from AdsLoader
Fail on any step will cause to not showing ad.Constructor and Description |
---|
SingleAdAdapter(AdsPlacement adsPlacement,
java.util.Set<Recyclable> weakRecyclableItemsForRelease) |
SingleAdAdapter(AdsPlacement adsPlacement,
java.util.Set<Recyclable> weakRecyclableItemsForRelease,
boolean isStaggeredLayoutManager) |
Modifier and Type | Method and Description |
---|---|
int |
getItemCount() |
void |
onBindViewHolder(AdViewHolder holder,
int position) |
AdViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
void |
release() |
void |
setAdsVisible(boolean visible) |
public SingleAdAdapter(AdsPlacement adsPlacement, java.util.Set<Recyclable> weakRecyclableItemsForRelease)
public SingleAdAdapter(AdsPlacement adsPlacement, java.util.Set<Recyclable> weakRecyclableItemsForRelease, boolean isStaggeredLayoutManager)
public AdViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
public void onBindViewHolder(AdViewHolder holder, int position)
public void setAdsVisible(boolean visible)
public int getItemCount()
public void release()