init
This commit is contained in:
parent
b8ebc36d29
commit
631230a1df
@ -62,7 +62,6 @@ public class CommonUtil {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
public static func getMessageText(methodCall: FlutterMethodCall)->String{
|
||||
let result: String = getParamValue(methodCall: methodCall, param: KEY_TEXT) as! String
|
||||
return result
|
||||
@ -267,7 +266,6 @@ public class CommonUtil {
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
//login
|
||||
private static let KEY_UID: String = "uid";
|
||||
private static let KEY_TOKEN: String = "token";
|
||||
@ -275,7 +273,7 @@ public class CommonUtil {
|
||||
private static let KEY_TEXT: String = "text";
|
||||
private static let KEY_AT_USER_LIST: String = "atUserList";
|
||||
private static let KEY_IMAGE_PATH: String = "imagePath";
|
||||
private static let KEY_SOUND_PATH : String= "soundPath";
|
||||
private static let KEY_SOUND_PATH: String= "soundPath";
|
||||
private static let KEY_SOUND_DURATION: String = "duration";
|
||||
private static let KEY_VIDEO_PATH: String = "videoPath";
|
||||
private static let KEY_VIDEO_TYPE: String = "videoType";
|
||||
@ -285,7 +283,7 @@ public class CommonUtil {
|
||||
private static let KEY_FILE_NAME: String = "fileName";
|
||||
private static let KEY_MERGER_MESSAGE_LIST: String = "messageList";
|
||||
private static let KEY_MERGER_MESSAGE_TITLE: String = "title";
|
||||
private static let KEY_SUMMARY_LIST =: String "summaryList";
|
||||
private static let KEY_SUMMARY_LIST: String = "summaryList";
|
||||
private static let KEY_FORWARD_MESSAGE: String = "message";
|
||||
//send message
|
||||
private static let KEY_SEND_MESSAGE_CONTENT: String = "message";
|
||||
|
@ -172,7 +172,9 @@ public class SwiftFlutterOpenimSdkPlugin: NSObject, FlutterPlugin {
|
||||
|
||||
private func handleGroupManager(call: FlutterMethodCall, result: @escaping FlutterResult){
|
||||
let method: String = call.method
|
||||
if method == "inviteUserToGroup" {
|
||||
if method == "setGroupListener" {
|
||||
groupManager.setGroupListener(methodCall: call, result: result)
|
||||
}else if method == "inviteUserToGroup" {
|
||||
groupManager.inviteUserToGroup(methodCall: call, result: result)
|
||||
}else if method == "kickGroupMember" {
|
||||
groupManager.kickGroupMember(methodCall: call, result: result)
|
||||
|
@ -2,6 +2,7 @@ library flutter_openim_sdk;
|
||||
|
||||
export 'src/enum/conversation_type.dart';
|
||||
export 'src/enum/group_role.dart';
|
||||
export 'src/enum/im_platform.dart';
|
||||
export 'src/enum/listener_type.dart';
|
||||
export 'src/enum/message_status.dart';
|
||||
export 'src/enum/message_type.dart';
|
||||
|
9
lib/src/enum/im_platform.dart
Normal file
9
lib/src/enum/im_platform.dart
Normal file
@ -0,0 +1,9 @@
|
||||
class IMPlatform {
|
||||
static const ios = 1;
|
||||
static const android = 2;
|
||||
static const windows = 3;
|
||||
static const xos = 4;
|
||||
static const web = 5;
|
||||
static const mini_web = 6;
|
||||
static const linux = 7;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user