sendSoundMessage method Null safety

  1. @Deprecated('sendSoundMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createSoundMessage to create the message first, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage>> sendSoundMessage(
  1. {required String soundPath,
  2. required String receiver,
  3. required String groupID,
  4. required int duration,
  5. MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  6. bool onlineUserOnly = false,
  7. bool isExcludedFromUnreadCount = false,
  8. OfflinePushInfo? offlinePushInfo}
)
@Deprecated('sendSoundMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createSoundMessage to create the message first, and then call sendMessage to send the message')

Send a voice message

Note: web does not support this interface

Implementation

@Deprecated(
 'sendSoundMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createSoundMessage to create a message, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage> ;> sendSoundMessage({
 required String soundPath,
 required String receiver,
 required String groupID,
 required int duration,
 MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
 bool onlineUserOnly = false,
 bool isExcludedFromUnreadCount = false,
 OfflinePushInfo? offlinePushInfo,
}) async {
 return ImFlutterPlatform.instance.sendSoundMessage(
 soundPath: soundPath,
 receiver: receiver,
 groupID: groupID,
 duration: duration,
 priority: EnumUtils.convertMessagePriorityEnum(priority),
 onlineUserOnly: onlineUserOnly,
 isExcludedFromUnreadCount: isExcludedFromUnreadCount,
 offlinePushInfo: offlinePushInfo?.toJson());
}