createChatroomFileMessage static method
- {required String roomId,
- required String filePath,
- required String displayName,
- 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',
});
}