createChatroomFileMessage static method

Future<NIMResult<NIMChatroomMessage>> createChatroomFileMessage(
  1. {required String roomId,
  2. required String filePath,
  3. required String displayName,
  4. NIMNosScene nosScene = NIMNosScenes.defaultIm}
)

创建文件消息

Implementation

static Future<NIMResult<NIMChatroomMessage>> createChatroomFileMessage({
  required String roomId,
  required String filePath,
  required String displayName,
  NIMNosScene nosScene = NIMNosScenes.defaultIm,
}) async {
  return NimCore.instance.chatroomService._createMessage({
    'roomId': roomId,
    'filePath': filePath,
    'displayName': displayName,
    'nosScene': nosScene,
    'messageType': 'file',
  });
}