# EditMessageManager

public class EditMessageManager

## Types

ActiveType
Link copied to clipboard
public enum ActiveType
StatusListener
Link copied to clipboard
public interface StatusListener

## Properties

isEmoticonMode
Link copied to clipboard
public boolean isEmoticonMode
TAG
Link copied to clipboard
public final static String TAG

## Functions

activeEditMode
Link copied to clipboard
public void activeEditMode(EditMessageManager.ActiveType type, EditMessageConfig config, boolean showKeyBoard)
激活编辑消息模式
addKeyboardHeightObserver
Link copied to clipboard
public void addKeyboardHeightObserver(KeyboardHeightObserver observer)
addMentionBlocks
Link copied to clipboard
public void addMentionBlocks(EditText editText, List<MentionBlock> mentionBlocks)
RongMentionManager 重新绑定Edittext对应的MentionList。 MentionBlock：“@人名”对应输入框的起始位置。 在RongExtensionViewModel#setEditTextWidget重新绑定Edittext之后，需要调用此接口重新绑定MentionList。
addStatusListener
Link copied to clipboard
public void addStatusListener(EditMessageManager.StatusListener listener)
editMessage
Link copied to clipboard
public void editMessage(EditText editText, OperationCallback callback)
修改消息
public void editMessage(Message message, String editContent)
exitEditMode
Link copied to clipboard
public void exitEditMode()
退出编辑消息状态，清空编辑消息配置，并获取草稿。
getEditMessageConfig
Link copied to clipboard
public EditMessageConfig getEditMessageConfig()
是否编辑消息状态
getEmoticonTabs
Link copied to clipboard
public List<IEmoticonTab> getEmoticonTabs()
getInstance
Link copied to clipboard
public static EditMessageManager getInstance()
getPluginModules
Link copied to clipboard
public List<IPluginModule> getPluginModules(ConversationType conversationType)
isEditMessageState
Link copied to clipboard
public boolean isEditMessageState()
是否编辑消息状态
isEmoticonMode
Link copied to clipboard
public boolean isEmoticonMode()
onAttachedToExtension
Link copied to clipboard
public void onAttachedToExtension(Fragment fragment, RongExtension extension)
onDeleteClick
Link copied to clipboard
public void onDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)
onDestroy
Link copied to clipboard
public void onDestroy(ConversationType type, String targetId)
onDetachedFromExtension
Link copied to clipboard
public void onDetachedFromExtension()
onDisconnect
Link copied to clipboard
public void onDisconnect()
onInit
Link copied to clipboard
public void onInit(Context context, String appKey)
onKeyboardHeightChange
Link copied to clipboard
public void onKeyboardHeightChange(int orientation, boolean isOpen, int keyboardHeight)
onPause
Link copied to clipboard
public void onPause()
onReceivedMessage
Link copied to clipboard
public void onReceivedMessage(Message message)
onResume
Link copied to clipboard
public void onResume()
onResumeEditModeResult
Link copied to clipboard
public void onResumeEditModeResult(EditMessageManager.ActiveType type, EditMessageConfig config)
处理恢复编辑状态结果，根据不同的类型 ActiveType 处理不同的逻辑
onSendToggleClick
Link copied to clipboard
public void onSendToggleClick(Message message)
onTextChanged
Link copied to clipboard
public void onTextChanged(Context context, ConversationType type, String targetId, int cursorPos, int count, String text)
removeKeyboardHeightObserver
Link copied to clipboard
public void removeKeyboardHeightObserver(KeyboardHeightObserver observer)
removeStatusListener
Link copied to clipboard
public void removeStatusListener(EditMessageManager.StatusListener listener)
setEmoticonMode
Link copied to clipboard
public void setEmoticonMode(boolean show)