XXIMSDK class

Constructors

XXIMSDK()

Properties

convManager ConvManager
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
msgManager MsgManager
getter/setter pair
noticeManager NoticeManager
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

closeAllDatabase() Future?
关闭所有数据库
closeDatabase() Future?
关闭数据库
closePullSubscribe() → void
关闭拉取订阅
connect(String wsUrl) → void
连接
customRequest({required String method, required List<int> bytes, SuccessCallback<List<int>>? onSuccess, ErrorCallback? onError}) Future<List<int>?>?
自定义请求
disconnect() → void
断连
init({required String? directory, Duration requestTimeout = const Duration(seconds: 10), required String rsaPublicKey, required String aesKey, required CxnParams cxnParams, Duration autoPullTime = const Duration(seconds: 20), int pullMsgCount = 50, List<CollectionSchema> isarSchemas = const [], bool isarInspector = false, required ConnectListener connectListener, required SubscribeCallback subscribeCallback, IsarListener? isarListener, PullListener? pullListener, ConvListener? convListener, MsgListener? msgListener, NoticeListener? noticeListener, UnreadListener? unreadListener}) → void
初始化
isConnect() bool
是否连接
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDatabase({required String userId, String? isarName}) Future?
打开数据库
openPullSubscribe({Map<String, AesParams>? convParams}) → void
打开拉取订阅
setCxnParams({required String rsaPublicKey, required String aesKey, required CxnParams cxnParams}) Future<bool>
设置连接参数
setUserParams({required String userId, required String token, List<int>? ext, String? isarName, Map<String, AesParams>? convParams}) Future<bool>
设置用户参数
toString() String
A string representation of this object.
inherited

Operators

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