sendCustomMessage method
- {required String sessionId,
- required NIMSessionType sessionType,
- String? content,
- NIMMessageAttachment? attachment,
- NIMCustomMessageConfig? config,
- MessageAction? action}
发送自定义消息
Implementation
Future<NIMResult<NIMMessage>> sendCustomMessage({
required String sessionId,
required NIMSessionType sessionType,
String? content,
NIMMessageAttachment? attachment,
NIMCustomMessageConfig? config,
MessageAction? action,
}) async {
var message = NIMMessage.customEmptyMessage(
sessionId: sessionId,
sessionType: sessionType,
content: content,
attachment: attachment,
config: config);
return _createMessageAndSend(message, action);
}