Package com.my.target.nativeads.views
Class PromoCardRecyclerView.PromoCardAdapter
-
- All Implemented Interfaces:
public abstract class PromoCardRecyclerView.PromoCardAdapter extends RecyclerView.Adapter<VH>
-
-
Constructor Summary
Constructors Constructor Description PromoCardRecyclerView.PromoCardAdapter()
-
Method Summary
Modifier and Type Method Description intgetItemCount()List<NativePromoCard>getNativePromoCards()abstract PromoCardViewgetPromoCardView()voidonBindViewHolder(@NonNull() PromoCardRecyclerView.PromoCardViewHolder holder, int position)PromoCardRecyclerView.PromoCardViewHolderonCreateViewHolder(@NonNull() ViewGroup parent, int viewType)voidonViewRecycled(@NonNull() PromoCardRecyclerView.PromoCardViewHolder holder)voidsetCards(@NonNull() List<NativePromoCard> promoCards)-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getItemCount
int getItemCount()
-
getNativePromoCards
@NonNull() List<NativePromoCard> getNativePromoCards()
-
getPromoCardView
@NonNull() abstract PromoCardView getPromoCardView()
-
onBindViewHolder
void onBindViewHolder(@NonNull() PromoCardRecyclerView.PromoCardViewHolder holder, int position)
-
onCreateViewHolder
@NonNull() PromoCardRecyclerView.PromoCardViewHolder onCreateViewHolder(@NonNull() ViewGroup parent, int viewType)
-
onViewRecycled
void onViewRecycled(@NonNull() PromoCardRecyclerView.PromoCardViewHolder holder)
-
setCards
void setCards(@NonNull() List<NativePromoCard> promoCards)
-
-
-
-