-
public final class HMSNotificationAdapter extends RecyclerView.Adapter<HMSNotificationAdapter.NotificationCardViewHolder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classHMSNotificationAdapter.NotificationCardViewHolder
-
Field Summary
Fields Modifier and Type Field Description private final Function0<Unit>onDismissClickedprivate final Function1<HMSNotificationType, Unit>onActionButtonClicked
-
Constructor Summary
Constructors Constructor Description HMSNotificationAdapter(List<HMSNotification> notifications, Function0<Unit> onDismissClicked, Function1<HMSNotificationType, Unit> onActionButtonClicked)
-
Method Summary
Modifier and Type Method Description final Function0<Unit>getOnDismissClicked()final Function1<HMSNotificationType, Unit>getOnActionButtonClicked()final UnitsetItems(List<HMSNotification> notifications)final List<HMSNotification>getItems()HMSNotificationAdapter.NotificationCardViewHolderonCreateViewHolder(ViewGroup parent, Integer viewType)UnitonBindViewHolder(HMSNotificationAdapter.NotificationCardViewHolder holder, Integer position)UnitonBindViewHolder(HMSNotificationAdapter.NotificationCardViewHolder holder, Integer position, List<Object> payloads)IntegergetItemCount()-
Methods inherited from class live.hms.roomkit.ui.notification.HMSNotificationAdapter
bindViewHolder, canRestoreState, createViewHolder, findRelativeAdapterPositionIn, getItemId, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, setStateRestorationPolicy, unregisterAdapterDataObserver -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HMSNotificationAdapter
HMSNotificationAdapter(List<HMSNotification> notifications, Function0<Unit> onDismissClicked, Function1<HMSNotificationType, Unit> onActionButtonClicked)
-
-
Method Detail
-
getOnDismissClicked
final Function0<Unit> getOnDismissClicked()
-
getOnActionButtonClicked
final Function1<HMSNotificationType, Unit> getOnActionButtonClicked()
-
setItems
final Unit setItems(List<HMSNotification> notifications)
-
getItems
final List<HMSNotification> getItems()
-
onCreateViewHolder
HMSNotificationAdapter.NotificationCardViewHolder onCreateViewHolder(ViewGroup parent, Integer viewType)
-
onBindViewHolder
Unit onBindViewHolder(HMSNotificationAdapter.NotificationCardViewHolder holder, Integer position)
-
onBindViewHolder
Unit onBindViewHolder(HMSNotificationAdapter.NotificationCardViewHolder holder, Integer position, List<Object> payloads)
-
getItemCount
Integer getItemCount()
-
-
-
-