Created by huangjun on 2015/12/28.
更多...
|
| String | getRoomId () |
| | 获取聊天室id 更多...
|
| |
| void | setRoomId (String roomId) |
| | 设置聊天室id 更多...
|
| |
| boolean | isEnableLbs () |
| |
| void | setEnableLbs (boolean enableLbs, String account, String token, boolean isAnonymousMode) |
| |
| String | getAppKey () |
| | 获取聊天室appKey 更多...
|
| |
| void | setAppKey (String appKey) |
| | 设置聊天室appKey,独立登录模式下,才启用, 不传则使用IM对应的appKey, 需要保证roomId与appKey的对应关系 更多...
|
| |
| String | getNick () |
| | 获取聊天室展示的昵称 更多...
|
| |
| void | setNick (String nick) |
| | 设置聊天室展示的昵称,可选字段,如果不填则直接使用NimUserInfo的数据 更多...
|
| |
| String | getAvatar () |
| | 获取聊天室展示的头像 更多...
|
| |
| void | setAvatar (String avatar) |
| | 设置聊天室展示的头像 更多...
|
| |
| Map< String, Object > | getExtension () |
| | 获取进入聊天室后展示的扩展字段 更多...
|
| |
| void | setExtension (Map< String, Object > extension) |
| | 设置进入聊天室后展示的扩展字段,长度限制4k 更多...
|
| |
| Map< String, Object > | getNotifyExtension () |
| | 获取聊天室通知开发者扩展字段 更多...
|
| |
| void | setNotifyExtension (Map< String, Object > notifyExtension) |
| | 设置聊天室通知开发者扩展字段,长度限制1k 更多...
|
| |
| String | getTags () |
| | 获取 登录标签 更多...
|
| |
| void | setTags (String tags) |
| | 设置 登录标签 更多...
|
| |
| String | getNotifyTargetTags () |
| | 获取 登录登出通知的目标标签 更多...
|
| |
| void | setNotifyTargetTags (String notifyTargetTags) |
| | 设置 登录登出通知的目标标签 更多...
|
| |
| boolean | isIndependentMode () |
| | 是否是独立登录聊天室 更多...
|
| |
| boolean | isAnonymousMode () |
| |
| String | getAccount () |
| | 获取独立登录模式的用户账号 更多...
|
| |
| String | getToken () |
| | 获取独立登录模式的用户密码 更多...
|
| |
| Integer | getLoginAuthType () |
| | 获取鉴权方式 更多...
|
| |
| void | setLoginAuthType (Integer loginAuthType) |
| | 设置鉴权方式 更多...
|
| |
| String | getLoginExt () |
| | 获取登录自定义字段 更多...
|
| |
| void | setLoginExt (String loginExt) |
| | 设置登录自定义字段 更多...
|
| |
| ChatRoomSpatialLocation | getChatRoomSpatialLocation () |
| |
| void | setChatRoomSpatialLocation (ChatRoomSpatialLocation chatRoomSpatialLocation) |
| |
| ChatRoomAuthProvider | getChatRoomAuthProvider () |
| |
| void | setChatRoomAuthProvider (ChatRoomAuthProvider chatRoomAuthProvider) |
| |
| ChatRoomIndependentCallback | getIndependentModeCallback () |
| |
| AntiSpamConfig | getAntiSpamConfig () |
| |
| void | setAntiSpamConfig (AntiSpamConfig antiSpamConfig) |
| |
| void | setIndependentMode (ChatRoomIndependentCallback cb, String account, String token) |
| | 设置聊天室独立模式 更多...
|
| |
| void | setIndependentMode (ChatRoomIndependentCallback cb, String account, String token, boolean isAnonymousMode) |
| | 设置聊天室独立模式 更多...
|
| |
| | EnterChatRoomData (String roomId) |
| |
| boolean | isValid () |
| |
Created by huangjun on 2015/12/28.
在文件 EnterChatRoomData.java 第 14 行定义.
| com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.EnterChatRoomData |
( |
String |
roomId | ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getAccount |
( |
| ) |
|
| AntiSpamConfig com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getAntiSpamConfig |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getAppKey |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getAvatar |
( |
| ) |
|
| ChatRoomAuthProvider com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getChatRoomAuthProvider |
( |
| ) |
|
| Map<String, Object> com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getExtension |
( |
| ) |
|
| Integer com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getLoginAuthType |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getLoginExt |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getNick |
( |
| ) |
|
| Map<String, Object> com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getNotifyExtension |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getNotifyTargetTags |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getRoomId |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getTags |
( |
| ) |
|
| String com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.getToken |
( |
| ) |
|
| boolean com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.isAnonymousMode |
( |
| ) |
|
| boolean com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.isEnableLbs |
( |
| ) |
|
| boolean com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.isIndependentMode |
( |
| ) |
|
| boolean com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.isValid |
( |
| ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setAntiSpamConfig |
( |
AntiSpamConfig |
antiSpamConfig | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setAppKey |
( |
String |
appKey | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setAvatar |
( |
String |
avatar | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setChatRoomAuthProvider |
( |
ChatRoomAuthProvider |
chatRoomAuthProvider | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setChatRoomSpatialLocation |
( |
ChatRoomSpatialLocation |
chatRoomSpatialLocation | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setEnableLbs |
( |
boolean |
enableLbs, |
|
|
String |
account, |
|
|
String |
token, |
|
|
boolean |
isAnonymousMode |
|
) |
| |
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setExtension |
( |
Map< String, Object > |
extension | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setIndependentMode |
( |
ChatRoomIndependentCallback |
cb, |
|
|
String |
account, |
|
|
String |
token |
|
) |
| |
设置聊天室独立模式
- 参数
-
| cb | 如果是独立模式,必须提供回调函数,用于SDK向APP获取聊天室地址信息的数据。 |
| account | 独立登录的账号,可以不填。不填即为匿名登录 |
| token | 独立登录的密码。 |
在文件 EnterChatRoomData.java 第 329 行定义.
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setIndependentMode |
( |
ChatRoomIndependentCallback |
cb, |
|
|
String |
account, |
|
|
String |
token, |
|
|
boolean |
isAnonymousMode |
|
) |
| |
设置聊天室独立模式
- 参数
-
| cb | 如果是独立模式,必须提供回调函数,用于SDK向APP获取聊天室地址信息的数据。 |
| account | 独立登录的账号, |
| token | 独立登录的密码。 |
| isAnonymousMode | 是否匿名模式,如果为false,account参数不可为空 |
在文件 EnterChatRoomData.java 第 343 行定义.
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setIndependentModeInternal |
( |
String |
account, |
|
|
String |
token, |
|
|
boolean |
isAnonymousMode |
|
) |
| |
|
protected |
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setLoginAuthType |
( |
Integer |
loginAuthType | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setLoginExt |
( |
String |
loginExt | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setNick |
( |
String |
nick | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setNotifyExtension |
( |
Map< String, Object > |
notifyExtension | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setNotifyTargetTags |
( |
String |
notifyTargetTags | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setRoomId |
( |
String |
roomId | ) |
|
| void com.netease.nimlib.sdk.chatroom.model.EnterChatRoomData.setTags |
( |
String |
tags | ) |
|
该类的文档由以下文件生成: