sendCustomMessage method
Future<V2TimValueCallback<V2TimMessage> >
sendCustomMessage({
- required String data,
- required String receiver,
- required String groupID,
- int priority = 0,
- String desc = "",
- String extension = "",
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- Map<
String, dynamic> ? offlinePushInfo,
override
发送自定义消息
Implementation
@override
Future<V2TimValueCallback<V2TimMessage>> sendCustomMessage({
required String data,
required String receiver,
required String groupID,
int priority = 0,
String desc = "",
String extension = "",
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
Map<String, dynamic>? offlinePushInfo,
}) async {
return await _v2timMessageManager.sendCustomMessage<V2TimValueCallback<V2TimMessage>, V2TimMessage>({
"data": data,
"receiver": receiver,
"groupID": groupID,
"priority": priority,
"desc": desc,
"extension": extension,
"onlineUserOnly": onlineUserOnly,
"isExcludedFromUnreadCount": isExcludedFromUnreadCount,
"offlinePushInfo": offlinePushInfo,
});
}