This commit is contained in:
hrxiang 2022-06-27 18:20:00 +08:00
parent 4132338633
commit 7a68e13398
12 changed files with 24 additions and 12 deletions

View File

@ -8,7 +8,7 @@
## 方法名、参数、返回值说明
## 方法说明
#### IMManager初始化管理
@ -200,6 +200,8 @@
## 方法名、参数、返回值说明
- ##### initSDK初始化SDK
```

View File

@ -1,6 +1,6 @@
///
class GroupAtType {
///
/// resetConversationGroupAtType方法
static const atNormal = 0;
/// @

View File

@ -1,3 +1,4 @@
/// flutter平台仅支持Android/ios
class IMPlatform {
/// IOS
static const ios = 1;

View File

@ -1,3 +1,4 @@
/// callback类型
class ListenerType {
static final simpleMsgListener = 'simpleMsgListener';
static final connectListener = 'connectListener';

View File

@ -83,6 +83,7 @@ class MessageType {
///
static const userInfoUpdatedNotification = 1303;
static const userNotificationEnd = 1399;
/// OA通知
@ -122,6 +123,7 @@ class MessageType {
///
static const dismissGroupNotification = 1511;
static const groupNotificationEnd = 1599;
///
@ -143,6 +145,7 @@ class MessageType {
///
static const signalingNotification = 1601;
static const signalingNotificationEnd = 1699;
///

View File

@ -18,7 +18,7 @@ class OnConversationListener {
this.onSyncServerStart,
});
///
///
void conversationChanged(List<ConversationInfo> list) {
if (onConversationChanged != null) onConversationChanged!(list);
}
@ -28,6 +28,12 @@ class OnConversationListener {
if (onNewConversation != null) onNewConversation!(list);
}
///
void totalUnreadMessageCountChanged(int i) {
if (onTotalUnreadMessageCountChanged != null)
onTotalUnreadMessageCountChanged!(i);
}
void syncServerFailed() {
if (onSyncServerFailed != null) onSyncServerFailed!();
}
@ -39,10 +45,4 @@ class OnConversationListener {
void syncServerStart() {
if (onSyncServerStart != null) onSyncServerStart!();
}
///
void totalUnreadMessageCountChanged(int i) {
if (onTotalUnreadMessageCountChanged != null)
onTotalUnreadMessageCountChanged!(i);
}
}

View File

@ -4,6 +4,7 @@ class OnMsgSendProgressListener {
OnMsgSendProgressListener({this.onProgress});
///
void progress(String clientMsgID, int progress) {
if (null != onProgress) onProgress!(clientMsgID, progress);
}

View File

@ -1,3 +1,4 @@
///
class OnOrganizationListener {
Function()? onOrganizationUpdated;

View File

@ -1,5 +1,6 @@
import 'package:flutter_openim_sdk/src/models/signaling_info.dart';
///
class OnSignalingListener {
final Function(SignalingInfo info)? onInvitationCancelled;
final Function(SignalingInfo info)? onInvitationTimeout;

View File

@ -1,12 +1,13 @@
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
///
class OnUserListener {
/// The information of the logged-in user has been updated
Function(UserInfo info)? onSelfInfoUpdated;
OnUserListener({this.onSelfInfoUpdated});
///
///
void selfInfoUpdated(UserInfo info) {
onSelfInfoUpdated?.call(info);
}

View File

@ -1,3 +1,4 @@
///
class OnWorkMomentsListener {
Function()? onRecvNewNotification;

View File

@ -323,7 +323,7 @@ class IMManager {
));
}
@deprecated
/// SDK
Future<dynamic> unInitSDK() {
return _channel.invokeMethod('unInitSDK', _buildParam({}));
}