createTipMessage static method

Future<NIMResult<NIMMessage>> createTipMessage(
  1. {required String sessionId,
  2. required NIMSessionType sessionType,
  3. String? content}
)

创建Tip消息 /// content web端tip内容传这个字段

Implementation

static Future<NIMResult<NIMMessage>> createTipMessage(
    {required String sessionId,
    required NIMSessionType sessionType,
    String? content}) async {
  var message = NIMMessage.tipEmptyMessage(
      sessionId: sessionId, sessionType: sessionType);
  message.content = content;
  return NimCore.instance.messageService._createMessage(message: message);
}