Class ChannelOperationsHandler
-
- All Implemented Interfaces:
public class ChannelOperationsHandler extends MultiDataHandler
Channel operations handler.
Note: Call stop to release resources when done.
- Since:
5.12.2
-
-
Field Summary
Fields Modifier and Type Field Description public final static MultiDataHandler.DataKey<ChannelNoDisturbLevel>KEY_SET_CONVERSATION_NOTIFICATION_STATUSpublic final static MultiDataHandler.DataKey<Boolean>KEY_SET_CONVERSATION_TO_TOPprotected volatile booleanisAlive
-
Constructor Summary
Constructors Constructor Description ChannelOperationsHandler(ChannelIdentifier channelIdentifier)
-
Method Summary
Modifier and Type Method Description voidsetConversationNotificationStatus(ChannelNoDisturbLevel noDisturbLevel)Sets the conversation notification status. voidsetConversationToTop(boolean isTop)Sets the conversation pinned (top) status. voidperformSetConversationToTop(boolean isTop, OperationHandler<Boolean> handler)Performs the underlying pin/unpin operation. -
Methods inherited from class ai.nexconn.chatui.base.BaseHandler
isAlive -
Methods inherited from class ai.nexconn.chatui.base.MultiDataHandler
addDataChangeListener, notifyDataChange, notifyDataError, notifyDataError, replaceDataChangeListener, stop -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setConversationNotificationStatus
void setConversationNotificationStatus(ChannelNoDisturbLevel noDisturbLevel)
Sets the conversation notification status.
- Parameters:
noDisturbLevel- the do-not-disturb level
-
setConversationToTop
void setConversationToTop(boolean isTop)
Sets the conversation pinned (top) status.
- Parameters:
isTop- whether to pin the conversation to the top
-
performSetConversationToTop
void performSetConversationToTop(boolean isTop, OperationHandler<Boolean> handler)
Performs the underlying pin/unpin operation.
Exposed as a protected seam so tests can drive the operation result without a real SDK engine.
- Parameters:
isTop- whether to pin the conversation to the tophandler- operation result callback
-
-
-
-