sendGroupCustomMessage method Null safety

  1. @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')
Future<V2TimValueCallback<V2TimMessage>> sendGroupCustomMessage(
  1. {required String customData,
  2. required String groupID,
  3. MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL}
)
@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 custom (signaling) 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 signaling in the group, such as linking microphone invitation, PK invitation, gift giving and other key signaling. 
V2TIMMessage.V2TIM_PRIORITY_NORMAL = 2: The cloud transmits according to the default priority, which is suitable for sending non-important signaling in the group, such as the audience's like reminder, etc. 

Back

Returns the unique ID of the message

Note:

The messages sent by this interface will not be pushed by default. If you need to push, 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>> sendGroupCustomMessage ({
 required String customData,
 required String groupID,
 MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
}) async {
 printWarning("Simple message is deprecated since 3.6.0, please use messageManager under Advanced send and receive messages, this interface will be removed in future versions)");
 return ImFlutterPlatform.instance.sendGroupCustomMessage(
 customData: customData,
 groupID: groupID,
 priority: EnumUtils.convertMessagePriorityEnum(priority)) ;
}