AIUserManager class

AI用户管理 AI用户全局缓存,每次登录成功数据同步完成之后重新拉取

Properties

aiSearchUserProvider AiSearchUserProvider?
getter/setter pair
aiTranslateLanguagesProvider AiTranslateLanguagesProvider?
getter/setter pair
aiTranslateUserProvider AiTranslateUserProvider?
getter/setter pair
aiUserCache Map<String, NIMAIUser>
final
aiUserChanged Stream<List<NIMAIUser>>?
获取AI用户列表变更通知
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAIChatUserList() List<NIMAIUser>
获取AI聊功能的数字人
getAISearchUser() → NIMAIUser?
获取AI搜索的AI用户
getAITranslateLanguages() List<String>
获取翻译目标语言
getAITranslateUser() → NIMAIUser?
获取翻译AI用户
getAIUserById(String accountId) → NIMAIUser?
根据ID获取数字人
getAIUserList() → void
拉取AI用户信息,并缓存
getAllAIUsers() List<NIMAIUser>
获取所有AI用户
getPinDefaultUserList() List<NIMAIUser>
获取默认置顶的AI用户
getUnpinAIUserList(NIMUserInfo currentUserInfo) List<String>
@return
getWelcomeText(String userId) String?
获取欢迎语
init() → void
初始化数字人,登录之前调用
isAIChatUserByAccount(String account) bool
根据accId判断是否是AI聊用户
isAIUser(String? account) bool
是否是AI数字人
isPinDefault(NIMAIUser aiUser) bool
是否默认置顶
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unpinAIUser(String accountId, bool addPin) Future<NIMResult<void>>
@param addPin true 置顶,false取消置顶 @return

Operators

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

Static Properties

instance AIUserManager
final

Static Methods

isAIChatUser(NIMAIUser aiUser) bool
是否是AI聊用户

Constants

KEY_AI_CHAT → const String
KEY_PIN_DEFAULT → const String
KEY_UNPIN_AI_USERS → const String
KEY_WELCOME_TEXT → const String
logTag → const String