createChatroomAudioMessage method Null safety
- {required String roomId,
- required String filePath,
- required int duration,
- NIMNosScene nosScene = NIMNosScenes.defaultIm}
Create an audio message.
Implementation
static Future<NIMResult<NIMChatroomMessage>> createChatroomAudioMessage({
required String roomId,
required String filePath,
required int duration,
NIMNosScene nosScene = NIMNosScenes.defaultIm,
}) async {
return NimCore.instance.chatroomService._createMessage({
'roomId': roomId,
'filePath': filePath,
'duration': duration,
'nosScene': nosScene,
'messageType': 'audio',
});
}