Room List - TapUI

If you are using UI implementation type, you can use the method below to open TapTalk.io's chat room list activity.
Java
Kotlin
TapUI.getInstance().openRoomList(CONTEXT);
TapUI.getInstance().openRoomList(CONTEXT)
Parameters CONTEXT: (Context) your Application or Activity context
Another option to use the chat room list as a fragment is also available:
Java
Kotlin
private TapUIMainRoomListFragment roomListFragment;
roomListFragment = TapUI.getInstance().getRoomListFragment();
getSupportFragmentManager()
.beginTransaction()
.show(roomListFragment)
.commit();
var roomListFragment = TapUI.getInstance().getRoomListFragment();
getSupportFragmentManager()
.beginTransaction()
.show(roomListFragment)
.commit()