Event Delegate
TapTalkLiveDelegate
#import <TapTalkLive/TapTalkLive.h>
// Add TapTalkLiveDelegatedeclaration
@interface ViewController () <TapTalkLiveDelegate>
@end
@implementation ViewController
- (void)function {
// Set TapTalkLive delegate to self
[[TapTalkLive sharedInstance] setDelegate:self];
}
#pragma mark - Delegate
#pragma mark TapTalkLiveDelegate
- (void)didTappedCloseButtonInCreateCaseViewWithCurrentShownNavigationController:(UINavigationController *)navigationController {
//Listen to event when user click close button in create case view
}
- (void)didTappedCloseButtonInCaseListViewWithCurrentShownNavigationController:(UINavigationController *)navigationController {
//Listen to event when user click close button in case list / room list view
}
- (void)didTappedCloseButtonInHomePageViewWithCurrentShownNavigationController:(UINavigationController *)navigationController {
// User closes the home page
}
- (void)didTappedCloseButtonInCreateCaseViewWithCurrentShownNavigationController:(UINavigationController *)navigationController {
// User closes the create case form
}
- (void)didTappedCloseButtonInCaseListViewWithCurrentShownNavigationController:(UINavigationController *)navigationController {
// User closes the case list page
}
- (void)seeAllMessagesButtonDidTappedWithCurrentShownNavigationController:(UINavigationController *)navigationController {
// User taps the See All Messages button in home page
// Implementing this will prevent opening the case list page by default
}
- (void)createNewMessageButtonDidTappedWithCurrentShownNavigationController:(UINavigationController *)navigationController {
// User taps the New Messages button in home or case list page
// Implementing this will prevent opening the create new case form by default
}
- (void)caseListItemDidTappedWithCurrentShownNavigationController:(UINavigationController *)navigationController lastMessage:(TAPMessageModel *)lastMessage {
// User taps a case from a list in home or case list page
// Implementing this will prevent opening the selected chat room by default
}
- (void)faqChildDidTapped:(TTLFaqModel *)faqModel currentShownNavigationController:(UINavigationController *)navigationController {
// User taps a FAQ from a list in home or FAQ details page
// Implementing this will prevent opening the selected FAQ details page by default
}
- (void)closeButtonInFaqDetailsViewDidTapped:(TTLFaqModel *)faqModel currentShownNavigationController:(UINavigationController *)navigationController {
// User closes the FAQ details page
}
- (void)talkToAgentButtonDidTapped:(TTLFaqModel *)faqModel currentShownNavigationController:(UINavigationController *)navigationController {
// User taps the Talk to Agent button in home or FAQ details page
// Implementing this will prevent opening the create new case form by default
}
@endLast updated