ChatListComponent

public class ChatListComponent

Conversation List Component

Author

shaunak

Since

2023-08-11

Constructors

Link copied to clipboard
public void ChatListComponent(Context context)
public void ChatListComponent(Context context, AttributeSet attrs)

Functions

Link copied to clipboard
public ChatListAdapter getChatListAdapter()
Retrieves the RecyclerView instance.
Link copied to clipboard
public RecyclerView getRecyclerView()
Get the RecyclerView instance
Link copied to clipboard
public View onCreateView(Context context, LayoutInflater inflater, ViewGroup parent, AttributeSet attrs)
Link copied to clipboard
public void onLoadMore(RefreshLayout refreshLayout)
Link copied to clipboard
public void onRefresh(RefreshLayout refreshLayout)
Link copied to clipboard
public void refreshChatList()
public void refreshChatList(int position)
Refresh the list
Link copied to clipboard
public void setChatListData(List<BaseChatModel> chatModels)
Set Data Source
Link copied to clipboard
public void setChatListUiState(ChatUiEvent event)
Sets the page refresh status
Link copied to clipboard
public void setItemClickListener(OnItemClickListener<BaseChatModel> mItemClickListener)
Sets the click event for list items
Link copied to clipboard
public void setItemLongClickListener(OnItemLongClickListener<BaseChatModel> mItemLongClickListener)
Sets the long-click event for list items
Link copied to clipboard
public void setPagedDataLoader(IChatListDataLoader pagedDataLoader)
Set up the page data loader