You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
open-im-sdk-flutter-m/ios/Classes/CommonUtil.swift

17 lines
543 B

import Foundation
public class CommonUtil {
public static func emitEvent(channel: FlutterMethodChannel, method: String, type: String, errCode: Int32?, errMsg: String?, data: Any?){
safeMainAsync {
var res: [String: Any] = [:]
res["type"] = type
res["data"] = data
res["errCode"] = errCode
res["errMsg"] = errMsg
print("native call flutter { method: \(method) type: \(type) }")
channel.invokeMethod(method, arguments: res)
}
}
}