ConversationListViewController class

会话列表控制器

Mixed-in types

Properties

cursor String?
getter/setter pair
hasDisposed bool
getter/setter pairinherited
hasFetchPinned bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasMore bool
getter/setter pairinherited
list List<ChatUIKitListItemModelBase>
getter/setter pairinherited
loadingType ValueNotifier<ChatUIKitListViewType>
getter/setter pairinherited
pageSize int
一次从服务器获取的会话列表数量,默认为 50
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
willShowHandler ConversationListViewShowHandler?
会话列表显示前的回调,你可以在这里对会话列表进行处理,比如排序或者加减等。如果不设置将会直接显示。
final

Methods

clearEmptyConversations(List list) Future<List>
deleteConversation({required String conversationId}) Future<void>
dispose() → void
override
fetchConversations() Future<List>
fetchItemList({bool force = false}) Future<void>
获取会话列表,会优先从本地获取,如果本地没有,并且没有从服务器获取过,则从服务器获取。 force (bool) 是否强制从服务器获取,默认为 false
override
fetchMoreItemList() Future<void>
inherited
mapperToConversationModelItems(List conversations) Future<List<ConversationItemModel>>
markConversationAsRead(String conversationId) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChatThreadEvent(dynamic event, String chatThreadId, List<String> userIds) → void
inherited
onCmdMessagesReceived(List messages) → void
inherited
onContactEvent(dynamic event, String userId, String? ext) → void
inherited
onConversationEvent(dynamic event, String conversationId, dynamic type) → void
override
onConversationRead(String from, String to) → void
inherited
onConversationsUpdate() → void
override
onGroupEvent(dynamic event, String groupId, List<String>? userIds) → void
inherited
onGroupMessageRead(List groupMessageAcks) → void
inherited
onMessageContentChanged(dynamic message, String operatorId, int operationTime) → void
override
onMessagePinChanged(String messageId, String conversationId, dynamic pinOperation, dynamic pinInfo) → void
inherited
onMessageReactionDidChange(List events) → void
inherited
onMessagesDelivered(List messages) → void
inherited
onMessagesRead(List messages) → void
inherited
onMessagesRecalled(List recalled) → void
inherited
onMessagesRecalledInfo(List infos, List replaces) → void
override
onMessagesReceived(List messages) → void
override
onMessageUpdate(dynamic newMessage, [dynamic oldMessage]) → void
inherited
onReadAckForGroupMessageUpdated() → void
inherited
onRemoteMessagesRemoved(String conversationId, String deviceId) → void
inherited
onTyping(List<String> fromUsers) → void
inherited
pinConversation({required String conversationId, required bool isPinned}) Future<void>
refresh() Future<void>
inherited
reload() Future<void>
从新从本地获取会话列表
override
toString() String
A string representation of this object.
inherited
updateConversationMuteType(List items) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited