FlutterMobileImsdk class

Constructors

FlutterMobileImsdk()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getConnectedStatus() Future<FlutterMobileIMSDKResult>
获取与服务器连接状态
getCurrentLoginInfo() Future<FlutterMobileIMSDKResult>
获取当前登录信息 result->{ result:bool, //标识接口调用是否成功 value:MobileIMSDKLoginInfo,//接口返回的登录信息
initMobileIMSDK({String serverIP, int serverPort, String appKey, MobileIMSDKSenseMode senseMode, bool debug}) Future<FlutterMobileIMSDKResult>
初始化SDK // 提示:在不退出APP的情况下退出登陆后再重新登陆时,请确保调用本方法一次,不然会报code=203错误哦!
isAutoReLoginRunning() Future<FlutterMobileIMSDKResult>
自动登录重连进程是否正在运行
isKeepAliveRunning() Future<FlutterMobileIMSDKResult>
keepAlive进程是否正在运行 result->{ result:bool, //标识接口调用是否成功 value:bool,//接口返回的连接状态,true表示进程正在运行,false表示程正不在运行状态
isQoS4ReciveDaemonRunning() Future<FlutterMobileIMSDKResult>
QoS4Recive进程是否正在运行
isQoS4SendDaemonRunning() Future<FlutterMobileIMSDKResult>
QoS4Send进程是否正在运行
login({String loginUserId, String loginToken, String extra}) Future<FlutterMobileIMSDKResult>
  • 退出登录重新登录记得要调一下initMobileIMSDK方法,不然会报code=203错误哦! 发送登陆信息.本方法中已经默认进行了核心库的初始化,因而使用本类完成登陆时,就无需单独 调用初始化方法ClientCoreSDK initCore了。
  • logout() Future<FlutterMobileIMSDKResult>
    发送注销登陆信息。此方法的调用将被本库理解为退出库的使用,本方法将会额外调 用资源释放方法 ClientCoreSDK releaseCore,以保证资源释放。
    sendMessage({String dataContent, String toUserId, String fingerPrint, bool qos, int typeu}) Future<FlutterMobileIMSDKResult>
    通用数据发送方法(sdk默认不需要Qos支持)。
    setMethodCallHandler({ValueChanged<FlutterMobileIMSDKMethod> handler}) → dynamic