getC2CReceiveMessageOpt method
Implementation
Future<V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>> getC2CReceiveMessageOpt({
required List<String> userIDList,
}) async {
if (!TIMManager.instance.isInitSDK()) {
return V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>(code: TIMErrCode.ERR_SDK_NOT_INITIALIZED.value, desc: "sdk not init");
}
String userData = Tools.generateUserData('getC2CReceiveMessageOpt');
Completer<V2TimValueCallback<List<V2TimReceiveMessageOptInfo>>> completer = Completer();
NativeLibraryManager.timValueCallback2Future(userData, completer);
Pointer<Char> pUserIDList = Tools.string2PointerChar(json.encode(userIDList));
Pointer<Void> pUserData = Tools.string2PointerVoid(userData);
NativeLibraryManager.bindings.DartGetC2CReceiveMessageOpt(pUserIDList, pUserData);
return completer.future;
}