If you are using UI implementation type, you can use the method below to open TapTalk.io's chat room list activity.
TapUI.getInstance().openRoomList(CONTEXT);
TapUI.getInstance().openRoomList(CONTEXT)
You may also open a specified chat room directly after the room list by passing a room model or room ID parameter. Passing roomID may require additional time to load chat room data after the room list page is opened.
// Opens room list, and then chat room with provided room modelTapUI.getInstance().openRoomList(CONTEXT, ROOM);// Opens room list, then loads chat room data and opens it when successfulTapUI.getInstance().openRoomList(CONTEXT, ROOM_ID);
// Opens room list, and then chat room with provided room modelTapUI.getInstance().openRoomList(CONTEXT, ROOM);// Opens room list, then loads chat room data and opens it when successfulTapUI.getInstance().openRoomList(CONTEXT, ROOM_ID);
Parameters
CONTEXT:(Context) your Application or Activity contextROOM:(TAPRoomModel) selected room model to be openedROOM_ID:(String) ID of the selected room model
Another option to use the chat room list as a fragment is also available: