NIMChatCache class

全局的单个会话缓存 统一维护会话的用户信息,群信息,群成员信息,pin消息

Properties

contactInfo → dynamic
no setter
contactInfoNotifier → Stream<ContactInfo>
no setter
currentChatIdNotifier → Stream<ChatSession?>
no setter
currentChatSession → ChatSession?
no setter
hashCode → int
The hash code for this object.
no setterinherited
pinnedMessages → dynamic
no setter
pinnedMessagesNotifier → dynamic
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriptions → List<StreamSubscription>
final
teamInfo → NIMTeam?
no setter
teamInfoNotifier → Stream<NIMTeam>
no setter
teamMembers → List<UserInfoWithTeam>
no setter
teamMembersNotifier → Stream<List<UserInfoWithTeam>>
no setter
wight ↔ int
设置的次数,解决因为chat_page 生命周期导致的问题
getter/setter pair

Methods

clearCurrentChatSession(String? sessionId, NIMConversationType conversationType, String conversationId) → void
fetchAllMember(String tId) → Future<void>
fetchTeamMember(String tId, {bool loadMore = false, int? limit}) → Future<void>
获取群成员
getMyTeamMember(String tid, {bool refresh = false}) → Future<UserInfoWithTeam?>
getTeamManagers() → List<UserInfoWithTeam>?
getTeamMember(String? account, String tid) → UserInfoWithTeam?
getTeamMemberById(String? account, String tid) → Future<UserInfoWithTeam?>
hasPrivilegeToInvite() → bool
hasPrivilegeToModify() → bool
是否有权限修改群信息
haveAitAllPrivilege() → bool
myTeamRole() → NIMTeamMemberRole?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentChatSession(ChatSession chatSession) → void
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ NIMChatCache
getter/setter pair

Constants

logTag → const String