use of io.rong.imkit.fragment.ConversationListFragment in project SeaStar by 13120241790.
the class MainActivity method initConversationList.
private Fragment initConversationList() {
if (mConversationFragment == null) {
ConversationListFragment listFragment = ConversationListFragment.getInstance();
Uri uri = Uri.parse("rong://" + getApplicationInfo().packageName).buildUpon().appendPath("conversationlist").appendQueryParameter(Conversation.ConversationType.PRIVATE.getName(), //设置私聊会话是否聚合显示
"false").appendQueryParameter(Conversation.ConversationType.GROUP.getName(), "true").appendQueryParameter(Conversation.ConversationType.DISCUSSION.getName(), //设置私聊会话是否聚合显示
"false").appendQueryParameter(Conversation.ConversationType.SYSTEM.getName(), //设置私聊会话是否聚合显示
"false").build();
listFragment.setUri(uri);
return listFragment;
} else {
return mConversationFragment;
}
}
Aggregations