Class ChannelListEventHandler
-
- All Implemented Interfaces:
public class ChannelListEventHandler extends MultiDataHandler
Channel list event listener handler
Registers all event listeners that trigger channel list refresh, and notifies the ViewModel via DataKey.
Monitored event types:
- Channel events (draft, clear, unread, delete, status changes)
- Message events (send, download, delete, recall, refresh, insert, clear)
- Message reception (distinguishes online/offline batch mode)
- Message recall
- Cancel send
- Channel status changes
- Since:
5.10.4
-
-
Field Summary
Fields Modifier and Type Field Description public final static MultiDataHandler.DataKey<Long>KEY_REFRESH_NEEDEDpublic final static MultiDataHandler.DataKey<Array<int>>KEY_DELETED_MSG_CONVERSATIONprotected volatile booleanisAlive
-
Constructor Summary
Constructors Constructor Description ChannelListEventHandler()
-
Method Summary
Modifier and Type Method Description booleanisInBatchMode()Whether currently in batch message reception mode (online or offline) booleanisInBatchOfflineMode()Whether currently in offline message batch reception mode voidstop()Stops the handler. -
Methods inherited from class ai.nexconn.chatui.base.BaseHandler
isAlive -
Methods inherited from class ai.nexconn.chatui.base.MultiDataHandler
addDataChangeListener, notifyDataChange, notifyDataError, notifyDataError, replaceDataChangeListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
isInBatchMode
boolean isInBatchMode()
Whether currently in batch message reception mode (online or offline)
-
isInBatchOfflineMode
boolean isInBatchOfflineMode()
Whether currently in offline message batch reception mode
-
stop
void stop()
Stops the handler.
-
-
-
-