You may optionally navigate through TapTalk.io Omnichannel Live Chat's UI, such as case list and chat room, using the following methods:
Open TapTalk Omnichannel View
To open TapTalkLive's view UI for your application, you can use the openTapTalkLiveView method from the TapTalkLive class. This will open a homepage activity containing a list of available channels, the user's latest case, and QnA path.
openTapTalkLiveView will return true if opening the view is successful, and will return false if it fails due to incomplete initialization. TapTalkLive initialization might not be completed if the device is not connected to internet or an incorrect APP_KEY_SECRET parameter was provided.
Open Case List View
You can open the user's case list page by calling openCaseListView. If no user is authenticated, create case form will be opened instead.
You may optionally attach TapTalk Omnichannel's case list fragment to your own activity. To obtain the chat list fragment instance, use the getCaseListFragment method.
YourActivity.java
import io.taptalk.taptalklive.TapTalkLive;
...
TTLCaseListFragment fragment = TapTalkLive.getCaseListFragment();
YourActivity.kt
import io.taptalk.taptalklive.TapTalkLive
...
val fragment = TapTalkLive.getCaseListFragment()
getCaseListFragment will return a TTLCaseListFragment instance.
Open Existing Case's Chat Room
YourActivity.java
import io.taptalk.taptalklive.TapTalkLive;
import io.taptalk.taptalklive.Listener.TTLCommonListener;
...
TapTalkLive.openCaseChatRoom(YourActivity.this, XC_ROOM_ID, new TTLCommonListener() {
@Override
public void onSuccess(String successMessage) {
// Successfully opened chat room
}
@Override
public void onError(String errorCode, String errorMessage) {
}
});
To use this method, you need to first finish process.
Once authenticated, you can open a chat room from one the user's case by calling openCaseChatRoom, providing the context and XC Room ID. You may obtain XC Room ID from one of the , or by .
ParametersCONTEXT: (Context) Context or your current Activity
XC_ROOM_ID: (String) XC Room ID of the user's case, can be obtained from or (TTLCaseModel.tapTalkXCRoomID)