createAudio method
Future<MsgModel>
createAudio({
- String senderInfo = "",
- required String convId,
- List<
String> atUsers = const [], - required AudioContent content,
- MsgOptionsModel? options,
- required MsgOfflinePushModel offlinePush,
- String ext = "",
创建语音消息
Implementation
Future<MsgModel> createAudio({
String senderInfo = "",
required String convId,
List<String> atUsers = const [],
required AudioContent content,
MsgOptionsModel? options,
required MsgOfflinePushModel offlinePush,
String ext = "",
}) {
return _sdkManager.createMsg(
senderInfo: senderInfo,
convId: convId,
atUsers: atUsers,
contentType: MsgContentType.audio,
content: content.toJson(),
options: options ??
MsgOptionsModel(
storageForServer: true,
storageForClient: true,
needDecrypt: false,
offlinePush: true,
updateConvMsg: true,
updateUnreadCount: true,
),
offlinePush: offlinePush,
ext: ext,
);
}