|
|
|
@ -132,6 +132,11 @@ public class ConversationManager: BaseServiceManager { |
|
|
|
|
|
|
|
|
|
public class ConversationListener: NSObject, Open_im_sdk_callbackOnConversationListenerProtocol { |
|
|
|
|
|
|
|
|
|
public func onSyncServerProgress(_ progress: Int) { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerProgress", errCode: nil, errMsg: nil, data: progress) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private let channel:FlutterMethodChannel |
|
|
|
|
|
|
|
|
|
init(channel:FlutterMethodChannel) { |
|
|
|
@ -146,16 +151,16 @@ public class ConversationListener: NSObject, Open_im_sdk_callbackOnConversationL |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onNewConversation", errCode: nil, errMsg: nil, data: conversationList) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func onSyncServerFailed() { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerFailed", errCode: nil, errMsg: nil, data: nil) |
|
|
|
|
public func onSyncServerFailed(_ reinstalled: Bool) { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerFailed", errCode: nil, errMsg: nil, data: reinstalled) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func onSyncServerFinish() { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerFinish", errCode: nil, errMsg: nil, data: nil) |
|
|
|
|
public func onSyncServerFinish(_ reinstalled: Bool) { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerFinish", errCode: nil, errMsg: nil, data: reinstalled) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func onSyncServerStart() { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerStart", errCode: nil, errMsg: nil, data: nil) |
|
|
|
|
public func onSyncServerStart(_ reinstalled: Bool) { |
|
|
|
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onSyncServerStart", errCode: nil, errMsg: nil, data: reinstalled) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public func onTotalUnreadMessageCountChanged(_ totalUnreadCount: Int32) { |
|
|
|
|