TypingMessageManager

Functions

Link copied to clipboard
Link copied to clipboard
public synchronized Collection<TypingStatus> getTypingUserListFromConversation(ConversationType conversationType, String targetId, String channelId)
根据 conversationType 和 targetId 获取当前会话正在输入的用户列表
Link copied to clipboard
public void init(Context context)
Link copied to clipboard
public boolean isShowMessageTyping()
Link copied to clipboard
public boolean onReceiveMessage(Message message, boolean isPersisted)
收到输入状态消息,显示正在输入 收到其它类型消息,取消正在输入的显示
Link copied to clipboard
public void sendTypingMessage(ConversationType conversationType, String targetId, String channelId, String typingContentType)
发送 TypingStatusMessage 为保证产品体验和网络优化,在当前用户的每个会话中,该消息发送之后, DISAPPEAR_INTERVAL时间间隔内不会再重复发送。
设置输入状态监听器。 当输入状态发生变化时,回调 onTypingStatusChanged (Conversation.
Link copied to clipboard
public void setTypingEnd(ConversationType conversationType, String targetId, String channelId)
输入状态终止
Link copied to clipboard
设置输入状态监听器。当输入状态发生变化时,会回调onTypingStatusChanged 对于单聊而言,当对方正在输入时,监听会触发一次;当对方不处于输入状态时,该监听还会触发一次,但是回调里上来的输入用户列表为空