FinoChat-Android-SDK
|
SDK界面管理相关API.
这个类主要用来提供界面管理相关API
更多...
Public 成员函数 | |
Fragment | conversationFragment () |
获取会话列表 更多... | |
Fragment | contactFragment () |
获取联系人列表 更多... | |
Fragment | workFragment () |
工作列表 更多... | |
Fragment | mineFragment () |
我的个人信息 更多... | |
Fragment | discoverFragment () |
发现界面 更多... | |
Fragment | webViewFragment (String url) |
创建一个WebView页面 更多... | |
void | createHomeChatPopupWindow (@NonNull Activity activity, @IdRes int anchorId) |
创建 添加好友/发起群聊 的PopupWindow 更多... | |
void | createGroupChat (@NonNull Activity activity) |
打开创建群聊页面 更多... | |
void | createChannel (@NonNull Activity activity) |
创建频道 更多... | |
void | addFriend (@NonNull Activity activity) |
打开添加好友页面 更多... | |
void | startSearch (@NonNull Activity activity) |
搜索消会话、消息、文件、通讯录、知识库、合规社区等 更多... | |
void | startPrivateNetDisk (Context context, String name) |
启动个人网盘页面 更多... | |
void | startAdviserZone (Context context, String userId) |
启动投顾空间页面 更多... | |
void | scanQrCode (Activity activity, boolean browseUrl) |
打开二维码扫描 更多... | |
void | handleQrCodeScanResult (Context context, int requestCode, int resultCode, Intent data) |
处理二维码扫描的结果 更多... | |
void | locateToNextChatWithUnreadMessages (Fragment fragment) |
在会话列表中,定位到下一个有未读消息的会话 更多... | |
void | startRoomChat (Context activityContext, String roomId) |
通过RoomId打开聊天房间 更多... | |
void | notifyConversationDataChanged (Fragment fragment) |
通知会话列表的数据已经发生改变 更多... | |
Public 属性 | |
int | REQUEST_CODE_SCAN_QR_CODE = 1245 |
扫描二维码时的请求码 更多... | |
String | SCAN_RESULT = "SCAN_RESULT" |
扫描二维码返回数据的intent的key,需要和QrCodeScanActivity中保持一致 更多... | |
SDK界面管理相关API.
这个类主要用来提供界面管理相关API
void com.finogeeks.finochat.sdk.IChatUIManager.addFriend | ( | @NonNull Activity | activity | ) |
打开添加好友页面
activity | 添加好友需要的Activity实例 |
Fragment com.finogeeks.finochat.sdk.IChatUIManager.contactFragment | ( | ) |
获取联系人列表
Fragment com.finogeeks.finochat.sdk.IChatUIManager.conversationFragment | ( | ) |
获取会话列表
void com.finogeeks.finochat.sdk.IChatUIManager.createChannel | ( | @NonNull Activity | activity | ) |
创建频道
activity |
void com.finogeeks.finochat.sdk.IChatUIManager.createGroupChat | ( | @NonNull Activity | activity | ) |
打开创建群聊页面
activity |
void com.finogeeks.finochat.sdk.IChatUIManager.createHomeChatPopupWindow | ( | @NonNull Activity | activity, |
@IdRes int | anchorId | ||
) |
创建 添加好友/发起群聊 的PopupWindow
activity | 创建PopupWindow的Activity实例 |
anchorId | 弹出PopupWindow所依赖的锚点的Id. |
Fragment com.finogeeks.finochat.sdk.IChatUIManager.discoverFragment | ( | ) |
发现界面
void com.finogeeks.finochat.sdk.IChatUIManager.handleQrCodeScanResult | ( | Context | context, |
int | requestCode, | ||
int | resultCode, | ||
Intent | data | ||
) |
处理二维码扫描的结果
void com.finogeeks.finochat.sdk.IChatUIManager.locateToNextChatWithUnreadMessages | ( | Fragment | fragment | ) |
在会话列表中,定位到下一个有未读消息的会话
Fragment com.finogeeks.finochat.sdk.IChatUIManager.mineFragment | ( | ) |
我的个人信息
void com.finogeeks.finochat.sdk.IChatUIManager.notifyConversationDataChanged | ( | Fragment | fragment | ) |
通知会话列表的数据已经发生改变
fragment | 会话列表对应的Fragment |
void com.finogeeks.finochat.sdk.IChatUIManager.scanQrCode | ( | Activity | activity, |
boolean | browseUrl | ||
) |
打开二维码扫描
void com.finogeeks.finochat.sdk.IChatUIManager.startAdviserZone | ( | Context | context, |
String | userId | ||
) |
启动投顾空间页面
void com.finogeeks.finochat.sdk.IChatUIManager.startPrivateNetDisk | ( | Context | context, |
String | name | ||
) |
启动个人网盘页面
void com.finogeeks.finochat.sdk.IChatUIManager.startRoomChat | ( | Context | activityContext, |
String | roomId | ||
) |
通过RoomId打开聊天房间
activityContext | 来自Activity的Context |
roomId | 房间Id |
void com.finogeeks.finochat.sdk.IChatUIManager.startSearch | ( | @NonNull Activity | activity | ) |
搜索消会话、消息、文件、通讯录、知识库、合规社区等
Fragment com.finogeeks.finochat.sdk.IChatUIManager.webViewFragment | ( | String | url | ) |
创建一个WebView页面
url | 页面地址 |
Fragment com.finogeeks.finochat.sdk.IChatUIManager.workFragment | ( | ) |
工作列表
int com.finogeeks.finochat.sdk.IChatUIManager.REQUEST_CODE_SCAN_QR_CODE = 1245 |
扫描二维码时的请求码
String com.finogeeks.finochat.sdk.IChatUIManager.SCAN_RESULT = "SCAN_RESULT" |
扫描二维码返回数据的intent的key,需要和QrCodeScanActivity中保持一致