sendC2CCustomMessage 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>> sendC2CCustomMessage(
  1. {required String customData,
  2. required String userID}
)
@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 a single chat custom (signaling) message (maximum support 8KB) (deprecated since 3.6.0, please use the advanced send and receive messages under MessageManager)

A custom message is essentially a binary buffer at one end, on which you can freely organize your own message format (usually used for signaling), but custom messages do not support cloud sensitive word filtering. 

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 is 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>> sendC2CCustomMessage ({
 required String customData,
 required String userID,
}) async {
 printWarning("Simple message is deprecated since 3.6.0, please use the advanced send and receive messages under messageManager, this interface will be used in the future version)");
 return ImFlutterPlatform.instance.sendC2CCustomMessage(
 customData: customData,
 userID: userID,
 );
}