Class InformationNotificationMessageItemProvider
-
- All Implemented Interfaces:
-
ai.nexconn.chatui.channel.messagelist.provider.IChannelSummaryProvider,ai.nexconn.chatui.channel.messagelist.provider.IMessageProvider,ai.nexconn.chatui.widget.adapter.IViewProvider
public class InformationNotificationMessageItemProvider extends BaseNotificationMessageItemProvider<T>
-
-
Constructor Summary
Constructors Constructor Description InformationNotificationMessageItemProvider()
-
Method Summary
Modifier and Type Method Description ViewHolderonCreateMessageContentViewHolder(ViewGroup parent, int viewType)booleanisItemViewType(UiMessage item)booleanisMessageViewType(MessageContent messageContent)voidbindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, InformationNotificationMessage content, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener)SpannablegetSummarySpannable(Context context, InformationNotificationMessage data)The content to display in the conversation list when the last message is of this type. -
Methods inherited from class ai.nexconn.chatui.channel.messagelist.provider.BaseNotificationMessageItemProvider
bindViewHolder, isSummaryType, onCreateViewHolder, showSummaryWithName -
Methods inherited from class ai.nexconn.chatui.widget.adapter.IViewProvider
bindViewHolder, isItemViewType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onCreateMessageContentViewHolder
ViewHolder onCreateMessageContentViewHolder(ViewGroup parent, int viewType)
-
isItemViewType
boolean isItemViewType(UiMessage item)
- Parameters:
item- the data item- Returns:
whether this provider handles the item type
-
isMessageViewType
boolean isMessageViewType(MessageContent messageContent)
-
bindMessageContentViewHolder
void bindMessageContentViewHolder(ViewHolder holder, ViewHolder parentHolder, InformationNotificationMessage content, UiMessage uiMessage, int position, List<UiMessage> list, IViewProviderListener<UiMessage> listener)
-
getSummarySpannable
Spannable getSummarySpannable(Context context, InformationNotificationMessage data)
The content to display in the conversation list when the last message is of this type. For example, an image message should return the string "Image".
- Parameters:
context- the context- Returns:
the spannable string to display in the conversation list
-
-
-
-