AnalyticsService

The base interface for the analytics. This will log events to any remote analytics provider.

Inheritors

Functions

Link copied to clipboard
abstract fun destroy()
Link copied to clipboard
Link copied to clipboard
abstract fun registerSuperProperty(analyticsSuperProperties: AnalyticsSuperProperties, value: Any?)
Link copied to clipboard
abstract fun setEventObserver(eventObserver: (String, Map<String, Any?>) -> Unit)

Set an analytics event observer {eventObserver}. It will intercept analytics events.

Link copied to clipboard
abstract fun trackAlertLinkOpened(alertId: String, programId: String, linkUrl: String, widgetType: String?)
Link copied to clipboard
abstract fun trackBadgeCollectedButtonPressed(badgeId: String, badgeLevel: Int)
Link copied to clipboard
abstract fun trackBlockingUser()
Link copied to clipboard
abstract fun trackButtonTap(buttonName: String, extra: JsonObject)
Link copied to clipboard
abstract fun trackCancelFlagUi()
Link copied to clipboard
abstract fun trackChatReactionPanelOpen(messageId: String)
Link copied to clipboard
abstract fun trackChatReactionSelected(chatRoomId: String, messageId: String, reactionId: String, isRemoved: Boolean)
Link copied to clipboard
abstract fun trackConfiguration(internalAppName: String)
Link copied to clipboard
abstract fun trackFlagButtonPressed()
Link copied to clipboard
abstract fun trackInteraction(kind: String, id: String, interactionType: String, interactionCount: Int = 1, widgetPrompt: String)
Link copied to clipboard
abstract fun trackKeyboardClose(keyboardType: KeyboardType, hideMethod: KeyboardHideReason, chatMessageId: String? = null)
Link copied to clipboard
abstract fun trackKeyboardOpen(keyboardType: KeyboardType)
Link copied to clipboard
abstract fun trackLastChatStatus(status: Boolean)
Link copied to clipboard
abstract fun trackLastWidgetStatus(status: Boolean)
Link copied to clipboard
abstract fun trackMessageDisplayed(msgId: String, msg: String?, hasExternalImage: Boolean = false)
Link copied to clipboard
abstract fun trackMessageLinkClicked(chatRoomId: String, chatRoomName: String?, messageId: String?, link: String)
Link copied to clipboard
abstract fun trackMessageSent(msgId: String, msg: String?, hasExternalImage: Boolean = false, chatRoomId: String)
Link copied to clipboard
abstract fun trackOrientationChange(isPortrait: Boolean)
Link copied to clipboard
abstract fun trackPointThisProgram(points: Int)
Link copied to clipboard
abstract fun trackPointTutorialSeen(completionType: String, secondsSinceStart: Long)
Link copied to clipboard
abstract fun trackReportingMessage()
Link copied to clipboard
abstract fun trackSession(sessionId: String)
Link copied to clipboard
abstract fun trackSessionStarted()
Link copied to clipboard
abstract fun trackUsername(username: String)
Link copied to clipboard
abstract fun trackVideoAlertPlayed(kind: String, id: String, programId: String, videoUrl: String)
Link copied to clipboard
abstract fun trackWidgetBecameInteractive(kind: String, id: String, programId: String, linkUrl: String? = null)
Link copied to clipboard
abstract fun trackWidgetDismiss(kind: String, id: String, programId: String, interactionInfo: AnalyticsWidgetInteractionInfo?, interactable: Boolean?, action: DismissAction)
Link copied to clipboard
abstract fun trackWidgetDisplayed(kind: String, id: String, programId: String, linkUrl: String? = null)
Link copied to clipboard
abstract fun trackWidgetEngaged(kind: String, id: String, programId: String, widgetPrompt: String)
Link copied to clipboard
abstract fun trackWidgetInteraction(kind: String, id: String, programId: String, interactionInfo: AnalyticsWidgetInteractionInfo, widgetPrompt: String)
Link copied to clipboard
abstract fun trackWidgetReceived(kind: String, id: String)