Package io.rong.imkit.feature.mention
Class DraftHelper
-
- All Implemented Interfaces:
public class DraftHelper
Created by luoyanlong on 2018/11/23. 保存草稿时如果有@信息,把MentionBlock序列化保存起来, 之后可通过反序列化添加到RongMentionManager中
-
-
Constructor Summary
Constructors Constructor Description DraftHelper(String s)
-
Method Summary
Modifier and Type Method Description static String
encode(String content, String mentionBlocks)
没有@信息用普通文本保存 有@信息用json格式保存 String
decode()
void
restoreMentionInfo()
static String
getDraftContent(String json)
-
-
Method Detail
-
encode
static String encode(String content, String mentionBlocks)
没有@信息用普通文本保存 有@信息用json格式保存
-
decode
String decode()
-
restoreMentionInfo
void restoreMentionInfo()
-
getDraftContent
static String getDraftContent(String json)
-
-
-
-