|
| static V2NIMChatroomMessage | createTextMessage (String text) |
| | 构造文本消息 更多...
|
| |
| static V2NIMChatroomMessage | createImageMessage (String imagePath, String name, String sceneName, Integer width, Integer height) |
| | 构造图片消息 更多...
|
| |
| static V2NIMChatroomMessage | createAudioMessage (String audioPath, String name, String sceneName, Integer duration) |
| | 构造语音消息 更多...
|
| |
| static V2NIMChatroomMessage | createVideoMessage (String videoPath, String name, String sceneName, Integer duration, Integer width, Integer height) |
| | 构造视频消息 更多...
|
| |
| static V2NIMChatroomMessage | createFileMessage (String filePath, String name, String sceneName) |
| | 构造文件消息 更多...
|
| |
| static V2NIMChatroomMessage | createLocationMessage (double latitude, double longitude, String address) |
| | 构造地理位置消息 更多...
|
| |
| static V2NIMChatroomMessage | createCustomMessage (String rawAttachment) |
| | 构造自定义消息消息 更多...
|
| |
| static V2NIMChatroomMessage | createCustomMessageWithAttachment (V2NIMMessageCustomAttachment attachment) |
| | 构造自定义消息消息 更多...
|
| |
| static V2NIMChatroomMessage | createCustomMessageWithAttachment (V2NIMMessageCustomAttachment attachment, int subType) |
| | 构造自定义消息消息 更多...
|
| |
| static V2NIMChatroomMessage | createForwardMessage (V2NIMChatroomMessage message) |
| | 构造转发消息,消息内容与原消息一样 转发消息类型不能为:V2NIM_MESSAGE_TYPE_NOTIFICATION,V2NIM_MESSAGE_TYPE_ROBOT,V2NIM_MESSAGE_TYPE_TIP,V2NIM_MESSAGE_TYPE_AVCHAT 转发的消息消息必须为发送成功的消息 更多...
|
| |
| static V2NIMChatroomMessage | createTipsMessage (String text) |
| | 构造提示消息 更多...
|
| |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createAudioMessage |
( |
String |
audioPath, |
|
|
String |
name, |
|
|
String |
sceneName, |
|
|
Integer |
duration |
|
) |
| |
|
static |
构造语音消息
- 参数
-
| audioPath | 视频文件地址 |
| name | 视频文件显示名称 |
| sceneName | 文件存储场景名 自定义场景使用之前, 需要先调用V2NIMStorageService.addCustomStorageScene新增自定义场景值 传空默认使用:V2NIMStorageSceneConfig.DEFAULT_IM |
| duration | 语音文件播放长度 |
- 返回
- V2NIMChatroomMessage
在文件 V2NIMChatroomMessageCreator.java 第 90 行定义.
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createCustomMessage |
( |
String |
rawAttachment | ) |
|
|
static |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createFileMessage |
( |
String |
filePath, |
|
|
String |
name, |
|
|
String |
sceneName |
|
) |
| |
|
static |
构造文件消息
- 参数
-
| filePath | 文件地址 |
| name | 文件显示名称 |
| sceneName | 场景名 自定义场景使用之前, 需要先调用V2NIMStorageService.addCustomStorageScene新增自定义场景值 传空默认使用:V2NIMStorageSceneConfig.DEFAULT_IM |
- 返回
- V2NIMChatroomMessage
在文件 V2NIMChatroomMessageCreator.java 第 165 行定义.
构造转发消息,消息内容与原消息一样 转发消息类型不能为:V2NIM_MESSAGE_TYPE_NOTIFICATION,V2NIM_MESSAGE_TYPE_ROBOT,V2NIM_MESSAGE_TYPE_TIP,V2NIM_MESSAGE_TYPE_AVCHAT 转发的消息消息必须为发送成功的消息
- 参数
-
- 返回
- V2NIMChatroomMessage
在文件 V2NIMChatroomMessageCreator.java 第 248 行定义.
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createImageMessage |
( |
String |
imagePath, |
|
|
String |
name, |
|
|
String |
sceneName, |
|
|
Integer |
width, |
|
|
Integer |
height |
|
) |
| |
|
static |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createLocationMessage |
( |
double |
latitude, |
|
|
double |
longitude, |
|
|
String |
address |
|
) |
| |
|
static |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createTextMessage |
( |
String |
text | ) |
|
|
static |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createTipsMessage |
( |
String |
text | ) |
|
|
static |
| static V2NIMChatroomMessage com.netease.nimlib.sdk.v2.chatroom.V2NIMChatroomMessageCreator.createVideoMessage |
( |
String |
videoPath, |
|
|
String |
name, |
|
|
String |
sceneName, |
|
|
Integer |
duration, |
|
|
Integer |
width, |
|
|
Integer |
height |
|
) |
| |
|
static |
构造视频消息
- 参数
-
| videoPath | 视频文件地址 |
| name | 视频文件显示名称 |
| sceneName | 文件存储场景名 自定义场景使用之前, 需要先调用V2NIMStorageService.addCustomStorageScene新增自定义场景值 传空默认使用:V2NIMStorageSceneConfig.DEFAULT_IM |
| duration | 视频文件播放长度 |
| width | 视频文件宽度 |
| height | 视频文件高度 |
- 返回
- V2NIMChatroomMessage
在文件 V2NIMChatroomMessageCreator.java 第 126 行定义.
该类的文档由以下文件生成: