Event Listener
The Android SDK provides event listener 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.
You can listen through general events from the Live Chat SDK through the TapTalkLiveListener class. An instance of TapTalkLiveListener will be required to initialize the Live Chat SDK. A more complete implementation will be explained in this page.
TapTalkLiveListener listens to changes in the following methods:
Method Name
Invoked When
onInitializationCompleted()
TapTalkLive instance has finished initialization process.
onInitializationFailed()
TapTalkLive instance initialization failed with an error.
onNotificationReceived()
User receives new message from TapTalk.io through notification. Returns the newly received message.
onCloseButtonInHomePageTapped()
User closes the home page. Returns the home activity instance.
onCloseButtonInCreateCaseFormTapped()
User closes the create case form page. Returns the create case form activity instance.
onCloseButtonInCaseListTapped()
User closes the case list page. Returns the case list activity instance.
onTaskRootChatRoomClosed()
A chat room activity was closed by user when no other activity in the application is present (application will close).
onSeeAllMessagesButtonTapped()
User taps the See All Messages button in home page. Returns the current activity instance.
onCreateNewMessageButtonTapped()
User taps the New Messages button in home or case list page. Returns the current activity instance.
onCaseListItemTapped()
User taps a case from a list in home or case list page. Returns the current activity instance and selected case's last message.
onFaqChildTapped()
User taps a FAQ from a list in home or FAQ details page. Returns the current activity instance and selected SCF Path.
onCloseButtonInFaqDetailsTapped()
User closes the FAQ details page. Returns the current activity instance and selected SCF Path.
onTalkToAgentButtonTapped()
User taps the Talk to Agent button in home or FAQ details page. Returns the current activity instance and selected SCF Path.
onFaqContentUrlTapped()
User taps a url in FAQ content. Returns the current activity instance, selected SCF Path, and the selected url.
onFaqContentUrlLongPressed()
User long presses a url in FAQ content. Returns the current activity instance, selected SCF Path, and the selected url.
onFaqContentEmailAddressTapped()
User taps an email address in FAQ content. Returns the current activity instance, selected SCF Path, and the selected email address.
onFaqContentEmailAddressLongPressed()
User long presses an email address in FAQ content. Returns the current activity instance, selected SCF Path, and the selected email address.
onFaqContentPhoneNumberTapped()
User taps a phone number in FAQ content. Returns the current activity instance, selected SCF Path, and the selected phone number.
onFaqContentPhoneNumberLongPressed()
User long presses a phone number in FAQ content. Returns the current activity instance, selected SCF Path, and the selected phone number.
Last updated