Class ChannelListDataHandler
-
- All Implemented Interfaces:
public class ChannelListDataHandlerCore data handler for the channel list
Responsible for channel data fetching, filtering, sorting, deduplication, and UI model management. Implements OnPagedDataLoader to support load-more pagination.
Data loading has two paths:
- refresh — initial load or event-driven refresh, resets pagination (auto-coalesces rapid calls)
- )>loadNext — paginated load-more
- Since:
5.10.4
-
-
Field Summary
Fields Modifier and Type Field Description public final static DataKey<List<BaseUiChannel>>KEY_CONVERSATION_LIST
-
Constructor Summary
Constructors Constructor Description ChannelListDataHandler(Context applicationContext)
-
Method Summary
Modifier and Type Method Description voidrefresh()Refreshes the channel list (resets pagination). voidupdateByChannel(BaseChannel channel)Updates a single channel (from event callback) BaseUiChannelfindConversationFromList(ChannelType type, String channelId)voidrefreshConversationList()booleanisSupported(ChannelType type)void)>loadNext(OnDataChangeListener<Boolean> listener)booleanhasNext()voidstop()-
-
Method Detail
-
refresh
void refresh()
Refreshes the channel list (resets pagination). Rapid successive calls are auto-coalesced.
-
updateByChannel
void updateByChannel(BaseChannel channel)
Updates a single channel (from event callback)
-
findConversationFromList
BaseUiChannel findConversationFromList(ChannelType type, String channelId)
-
refreshConversationList
void refreshConversationList()
-
isSupported
boolean isSupported(ChannelType type)
-
loadNext
void )>loadNext(OnDataChangeListener<Boolean> listener)
-
hasNext
boolean hasNext()
-
stop
void stop()
-
-
-
-