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