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 TapTalk Omnichannel's view UI for your application, you can use the presentTapTalkLiveViewWithCurrentNavigationController:animated or pushTapTalkLiveViewWithCurrentNavigationController:animated method from the TapTalkLive class. This will open an activity containing a chat room list for your user, and will open a Create Case Form activity on top if the user is new or do not have any existing case.
YourViewController.m
#import <TapTalkLive/TapTalkLive.h>
/**
Called to show TapTalk Live view with present animation
@param navigationController (UINavigationController *) your current navigation controller
@param animated (BOOL) make the present animated or not
*/
[[TapTalkLive sharedInstance] presentTapTalkLiveViewWithCurrentNavigationController:NAVIGATION_CONTROLLER animated:ANIMATED];
/**
Called to show TapTalk Live view with push animation
@param navigationController (UINavigationController *) your current navigation controller
@param animated (BOOL) make the present animated or not
*/
[[TapTalkLive sharedInstance] pushTapTalkLiveViewWithCurrentNavigationController:NAVIGATION_CONTROLLER animated:ANIMATED];
/**
Obtain main view controller of TapTalk Live
*/
[[TapTalkLive sharedInstance] getTapTalkLiveViewMainController];
ParametersNAVIGATION_CONTROLLER: (UINavigationController) your current active navigation controller
ANIMATED: (BOOL) boolean to state animation active or not
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.
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 .
ParametersXC_ROOM_ID: (String) XC Room ID of the user's case, can be obtained from or (TTLCaseModel.tapTalkXCRoomID)NAVIGATION_CONTROLLER: (UINavigationController) your current active navigation controller
ANIMATED: (BOOL) boolean to state animation active or not