IMManager class

Constructors

IMManager(MethodChannel _channel)

Properties

channel MethodChannel
no setter
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
workMomentsManager WorkMomentsManager
getter/setter pair

Methods

getLoginStatus() Future<int?>
获取登录状态
getLoginUserID() Future<String>
获取当前登录用户id
getLoginUserInfo() Future<UserInfo>
获取当前登录用户信息
initSDK({required int platform, required String apiAddr, required String wsAddr, required String dataDir, required OnConnectListener listener, int logLevel = 6, String objectStorage = 'cos', String? encryptionKey, bool enabledEncryption = false, bool enabledCompression = false, bool isExternalExtensions = false, String? operationID}) Future
初始化SDK platform 平台编号IMPlatform apiAddr SDK api地址 wsAddr SDK websocket地址 dataDir SDK数据库存储目录 objectStorage 存储对象 cos/minio logLevel 日志 1不打印 enabledEncryption true:加密 enabledCompression true:压缩
login({required String uid, required String token, String? operationID, Future<UserInfo> defaultValue()?}) Future<UserInfo>
登录 uid 用户id token 登录token,从业务服务器上获取 defaultValue 获取失败后使用的默认值
logout({String? operationID}) Future
登出
networkChanged({String? operationID}) Future
网络改变
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAppBackgroundStatus({required bool isBackground, String? operationID}) Future
标记app处于后台
setListenerForService(OnListenerForService listener) Future
toString() String
A string representation of this object.
inherited
unInitSDK() Future
反初始化SDK
updateFcmToken({required String fcmToken, String? operationID}) Future
更新firebase客户端注册token fcmToken firebase token
uploadImage({required String path, String? token, String? objectStorage, String? operationID}) Future
上传图片到服务器 path 图片路径 token im token objectStorage 存储对象 cos/minio
wakeUp({String? operationID}) Future
从后台回到前台立刻唤醒

Operators

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