sendGroupTextMessage method Null safety
- @Deprecated('Simple message is deprecated since 3.6.0, please use the advanced send and receive messages under messageManager, this interface will be removed in future versions')
@Deprecated('Simple message is deprecated since 3.6.0, please use the advanced send and receive messages under messageManager, this interface will be removed in future versions')
Send group chat ordinary text messages (maximum support 8KB) (deprecated since 3.6.0, please use advanced sending and receiving messages under MessageManager)
Parameter
priority Set the priority of the message, we have no way to deliver 100% of all messages to every user, but high priority messages will have a higher delivery rate.
V2TIMMessage.V2TIM_PRIORITY_HIGH = 1: The cloud will give priority to transmission, which is suitable for sending important messages in the group, such as text messages sent by the host.
V2TIMMessage.V2TIM_PRIORITY_NORMAL = 2: The cloud transmits according to the default priority, which is suitable for sending non-important messages in the group, such as barrage messages sent by the audience.
Back
Returns the unique ID of the message
Note:
The messages sent by this interface will be pushed by default (provided that push is enabled in V2TIMOfflinePushManager). If you need to customize the push (title and content), please call the V2TIMMessageManager.sendMessage interface.
Implementation
@Deprecated('Simple message has been deprecated since 3.6.0, please use advanced send and receive messages under messageManager, this interface will be removed in future versions')
Future<V2TimValueCallback<V2TimMessage>> sendGroupTextMessage ({
required String text,
required String groupID,
int priority = 0,
}) async {
printWarning("Simple message has been deprecated since 3.6.0, please use advanced send/receive under messageManager message, this interface will be removed in future versions)");
return ImFlutterPlatform.instance
.sendGroupTextMessage(text: text, groupID: groupID, priority: priority);
}