TIMUIKitChatController class
Methods
-
clearHistory([String? convID])
→ dynamic
-
Clear the history of current conversation;
Please provide
convID
, if you use TIMUIKitChatController
without specifying to a TIMUIKitChat
.
-
dispose()
→ dynamic
-
Clear the current conversation;
-
getCurrentConversation()
→ String
-
Get current conversation, returns UserID or GroupID if in the chat page, returns "" if not.
-
getGroupMemberList({String? keyword})
→ List<V2TimGroupMemberFullInfo>
-
Returns the list of group members of current group chat based on the provided keyword.
-
hideAllBottomPanelOnMobile()
→ void
-
Hide all bottom panels, including the sticker panel and the additional functions panel, on mobile devices.
This function solely works when
TIMUIKitChatController
is specified for use within a TIMUIKitChat
.
-
loadHistoryMessageList({HistoryMsgGetTypeEnum getType = HistoryMsgGetTypeEnum.V2TIM_GET_CLOUD_OLDER_MSG, String? userID, String? groupID, int lastMsgSeq = -1, required int count, String? lastMsgID, LoadDirection direction = LoadDirection.previous})
→ Future<bool>
-
-
mentionOtherMemberInGroup({required String showNameInMessage, required String userID})
→ void
-
Mention or @ other members in a group manually.
This function solely works when
TIMUIKitChatController
is specified for use within a TIMUIKitChat
.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshCurrentHistoryList([String? convID, ConvType? convType])
→ Future<bool>
-
Refresh the history message list manually;
-
sendForwardMessage({required List<V2TimConversation> conversationList})
→ dynamic
-
Send forward message;
This function solely works when
TIMUIKitChatController
is specified for use within a TIMUIKitChat
.
-
sendMergerMessage({required List<V2TimConversation> conversationList, required String title, required List<String> abstractList, required BuildContext context})
→ Future<V2TimValueCallback<V2TimMessage>?>
-
Send merger message;
This method needs use with TIMUIKitChat directly or model been initialized.
-
sendMessage({required V2TimMessage? messageInfo, ConvType? convType, String? userID, String? groupID, ValueChanged<String>? setInputField, OfflinePushInfo? offlinePushInfo, bool isNavigateToMessageListBottom = true, MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL, bool? onlineUserOnly, bool? isExcludedFromUnreadCount, bool? needReadReceipt, String? cloudCustomData, String? localCustomData})
→ Future<V2TimValueCallback<V2TimMessage>?>?
-
Sends a message to the specified conversation, or to the current conversation specified on
TIMUIKitChat
.
You must provide convType
and either userID
or groupID
, only if you use TIMUIKitChat
without specifying a TIMUIKitChatController
, you must provide these parameters.
-
sendReplyMessage({required String messageText, required V2TimMessage messageBeenReplied, ConvType? convType, String? userID, String? groupID, ValueChanged<String>? setInputField, OfflinePushInfo? offlinePushInfo, bool isNavigateToMessageListBottom = true, MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL, bool? onlineUserOnly, bool? isExcludedFromUnreadCount, bool? needReadReceipt, String? localCustomData})
→ Future<V2TimValueCallback<V2TimMessage>?>?
-
Sends a message, replying to another message, to the specified conversation, or to the current conversation specified on
TIMUIKitChat
.
You must provide convType
and either userID
or groupID
, only if you use TIMUIKitChat
without specifying a TIMUIKitChatController
, you must provide these parameters.
-
setInputTextField(String text)
→ void
-
Set the content within the message input text field.
This function solely works when
TIMUIKitChatController
is specified for use within a TIMUIKitChat
.
-
setLocalCustomData(String msgID, String localCustomData, [String? convID])
→ Future<bool>
-
Set local custom data; returns the bool shows if succeed.
Please provide
convID
, if you use TIMUIKitChatController
without specifying to a TIMUIKitChat
.
-
setLocalCustomInt(String msgID, int localCustomInt, [String? convID])
→ Future<bool>
-
Set local custom int; returns the bool shows if succeed.
Please provide
convID
, if you use TIMUIKitChatController
without specifying to a TIMUIKitChat
.
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMessage({String? convID, ConvType? convType, required String msgID})
→ Future<void>
-
Update single message at UI model
Please provide
convID
, if you use TIMUIKitChatController
without specifying to a TIMUIKitChat
.