IMManager class

Constructors

IMManager()

Properties

conversationManager ConversationManager
getter/setter pair
friendshipManager FriendshipManager
getter/setter pair
groupManager GroupManager
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isLogined bool
getter/setter pair
messageManager MessageManager
getter/setter pair
organizationManager OrganizationManager
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signalingManager SignalingManager
getter/setter pair
token String?
getter/setter pair
uid String?
getter/setter pair
uInfo UserInfo?
getter/setter pair
userManager UserManager
getter/setter pair

Methods

getLoginStatus() Future<int?>
获取登录状态
getLoginUserID() Future<String>
获取当前登录用户id
getLoginUserInfo() Future<UserInfo>
获取当前登录用户信息
login({required String uid, required String token, String? operationID, Future<UserInfo> defaultValue()?}) Future<UserInfo>
反初始化SDK 登录 uid 用户id token 登录token,从业务服务器上获取 defaultValue 获取失败后使用的默认值
logout({String? operationID}) Future<void>
登出
networkChanged({String? operationID}) Future<void>
网络改变
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAppBackgroundStatus({required bool isBackground, String? operationID}) Future<void>
标记app处于后台
setAppBadge(int unreadCount, {String? operationID}) Future<void>
设置角标
toString() String
A string representation of this object.
inherited
updateFcmToken({required String fcmToken, String? operationID, required int expireTime}) Future<void>
更新firebase客户端注册token
uploadFile({required String putID, required String filePath, required String fileName, String? contentType, String? cause, String? operationID}) Future<void>
上传文件到服务器
wakeUp({String? operationID}) Future
从后台回到前台立刻唤醒

Operators

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