createChatroomImageMessage static method
- {required String roomId,
- required String filePath,
- String? displayName,
- NIMNosScene nosScene = NIMNosScenes.defaultIm}
创建图片消息
Implementation
static Future<NIMResult<NIMChatroomMessage>> createChatroomImageMessage({
required String roomId,
required String filePath,
String? displayName,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
}) async {
return NimCore.instance.chatroomService._createMessage({
'roomId': roomId,
'filePath': filePath,
'displayName': displayName,
'nosScene': nosScene,
'messageType': 'image',
});
}