ChatroomMessageBuilder class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
createChatroomAudioMessage({required String roomId, required String filePath, required int duration, NIMNosScene nosScene = NIMNosScenes.defaultIm})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建音频消息
-
createChatroomCustomMessage({required String roomId, NIMMessageAttachment? attachment})
→ Future<NIMResult<NIMChatroomMessage>>
-
-
createChatroomFileMessage({required String roomId, required String filePath, required String displayName, NIMNosScene nosScene = NIMNosScenes.defaultIm})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建文件消息
-
createChatroomImageMessage({required String roomId, required String filePath, String? displayName, NIMNosScene nosScene = NIMNosScenes.defaultIm})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建图片消息
-
createChatroomLocationMessage({required String roomId, required double latitude, required double longitude, required String address})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建地理位置消息
-
createChatroomRobotMessage({required String roomId, required String robotAccount, required NIMRobotMessageType type, String? text, String? content, String? target, String? params})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建机器人消息
-
createChatroomTextMessage({required String roomId, required String text})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建文本消息
-
createChatroomTipMessage({required String roomId})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建Tip消息
-
createChatroomVideoMessage({required String roomId, required String filePath, required int duration, required int width, required int height, String? displayName, NIMNosScene nosScene = NIMNosScenes.defaultIm})
→ Future<NIMResult<NIMChatroomMessage>>
-
创建视频消息