Package io.rong.imkit.feature.destruct
Class DestructManager
-
- All Implemented Interfaces:
public class DestructManagerCreated by Android Studio. User: lvhongzhen Date: 2019-09-11 Time: 10:26
-
-
Field Summary
Fields Modifier and Type Field Description public static intVOICE_DESTRUCT_TIMEpublic static intIMAGE_DESTRUCT_TIMEpublic static intSIGHT_DESTRUCT_TIME
-
Method Summary
Modifier and Type Method Description static DestructManagergetInstance()voidactiveDestructMode(Context context)激活阅后即焚模式 voidexitDestructMode()static booleanisActive()voidonTextChanged(Context context, ConversationType type, String targetId, int cursorPos, int count, String text)voidonSendToggleClick(Message message)voidonDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)voidonDestroy(ConversationType type, String targetId)voidaddListener(String pUId, DestructCountDownTimerListener pDestructListener, String pTag)voiddeleteMessage(Message pMessage)voiddeleteMessages(ConversationType pConversationType, String pTargetId, Array<Message> pDeleteMessages)StringgetUnFinishTime(String pMessageId)voidstartDestruct(Message pMessage)voidstopDestruct(Message pMessage)voidsafeAttacheToExtension(Fragment currentFragment, RongExtension extension)如果弱引用出问题,重新attach -
-
Method Detail
-
getInstance
static DestructManager getInstance()
-
activeDestructMode
void activeDestructMode(Context context)
激活阅后即焚模式
-
exitDestructMode
void exitDestructMode()
-
isActive
static boolean isActive()
-
onTextChanged
void onTextChanged(Context context, ConversationType type, String targetId, int cursorPos, int count, String text)
-
onSendToggleClick
void onSendToggleClick(Message message)
-
onDeleteClick
void onDeleteClick(ConversationType type, String targetId, EditText editText, int cursorPos)
-
onDestroy
void onDestroy(ConversationType type, String targetId)
-
addListener
void addListener(String pUId, DestructCountDownTimerListener pDestructListener, String pTag)
-
deleteMessage
void deleteMessage(Message pMessage)
-
deleteMessages
void deleteMessages(ConversationType pConversationType, String pTargetId, Array<Message> pDeleteMessages)
-
getUnFinishTime
String getUnFinishTime(String pMessageId)
-
startDestruct
void startDestruct(Message pMessage)
-
stopDestruct
void stopDestruct(Message pMessage)
-
safeAttacheToExtension
void safeAttacheToExtension(Fragment currentFragment, RongExtension extension)
如果弱引用出问题,重新attach
-
-
-
-