Event Delegate

The iOS SDK provides event delegates to listen to various events on the client app. Through these event delegates, TapTalk.io notifies the client app of events that happen on your app.

TapTalk.io provides seven types of event listeners to notify events to the client app. You will need to register the delegate objects to receive event callbacks from TapTalk.io.

Event Delegate Name

Description

TapTalkLiveDelegate

Listens to general event changes in the application

TapTalkLiveDelegate

General events such as notifications will be notified through TapTalkLiveDelegate. A TapTalkLiveDelegate instance is required when initializing TapTalk.

Note: Make sure to add #import <TapTalkLive/TapTalkLive.h> before registering the delegate

Objective-C
Objective-C
ViewController.m
//ViewController.m
#import <TapTalkLive/TapTalkLive.h>
//Add TapTalkDelegate declaration
@interface ViewController () <TapTalkLiveDelegate>
@end
@implementation ViewController
- (void)function {
//Set TapTalk delegate to current
[[TapTalkLive sharedInstance] setDelegate:self];
}
#pragma mark - Delegate
#pragma mark TapTalk
- (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
}
@end

Method Name

Invoked When

didTappedCloseButtonInCreateCaseViewWithCurrentShownNavigationController:

User click close button in Create Case View

didTappedCloseButtonInCaseListViewWithCurrentShownNavigationController:

User click close button in Case List View