sendTextMessage method
- @Deprecated('sendTextMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createTextMessage创建消息,再调用sendMessage发送消息')
- required String text,
- required String receiver,
- required String groupID,
- MessagePriorityEnum? priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- OfflinePushInfo? offlinePushInfo,
发送高级文本消息
Implementation
@Deprecated(
'sendTextMessage自3.6.0开始弃用,我们将创建消息与发送消息分离,请先使用createTextMessage创建消息,再调用sendMessage发送消息')
///发送高级文本消息
///
Future<V2TimValueCallback<V2TimMessage>> sendTextMessage({
required String text,
required String receiver,
required String groupID,
MessagePriorityEnum? priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
OfflinePushInfo? offlinePushInfo,
}) async {
return ImFlutterPlatform.instance.sendTextMessage(
text: text,
receiver: receiver,
groupID: groupID,
priority: priority!.index,
onlineUserOnly: onlineUserOnly,
isExcludedFromUnreadCount: isExcludedFromUnreadCount,
offlinePushInfo: offlinePushInfo?.toJson(),
);
}