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<Conversation> list) Future<List<Conversation>>
deleteConversation({required String conversationId}) Future<void>
dispose() → void
override
fetchConversations() Future<List<Conversation>>
fetchItemList({bool force = false}) Future<void>
获取会话列表,会优先从本地获取,如果本地没有,并且没有从服务器获取过,则从服务器获取。 force (bool) 是否强制从服务器获取,默认为 false
override
fetchMoreItemList() Future<void>
inherited
mapperToConversationModelItems(List<Conversation> conversations) Future<List<ConversationItemModel>>
markConversationAsRead(String conversationId) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChatThreadEvent(MultiDevicesEvent event, String chatThreadId, List<String> userIds) → void
inherited
onCmdMessagesReceived(List<Message> messages) → void
inherited
onContactEvent(MultiDevicesEvent event, String userId, String? ext) → void
inherited
onConversationEvent(MultiDevicesEvent event, String conversationId, ConversationType type) → void
override
onConversationRead(String from, String to) → void
inherited
onConversationsUpdate() → void
override
onGroupEvent(MultiDevicesEvent event, String groupId, List<String>? userIds) → void
inherited
onGroupMessageRead(List<GroupMessageAck> groupMessageAcks) → void
inherited
onMessageContentChanged(Message message, String operatorId, int operationTime) → void
override
onMessagePinChanged(String messageId, String conversationId, MessagePinOperation pinOperation, MessagePinInfo pinInfo) → void
inherited
onMessageReactionDidChange(List<MessageReactionEvent> events) → void
inherited
onMessagesDelivered(List<Message> messages) → void
inherited
onMessagesRead(List<Message> messages) → void
inherited
onMessagesRecalled(List<Message> recalled, List<Message> replaces) → void
override
onMessagesReceived(List<Message> messages) → void
override
onMessageUpdate(Message newMessage, [Message? 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<Conversation> items) Future<void>

Operators

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