MockAnalyticsService

MockAnalyticsService

class MockAnalyticsService

Constructors

<init>

constructor(clientId: String)

Parameters

Name Description
clientId: String

Methods

setEventObserver

fun setEventObserver(eventObserver: (String, JSONObject)->Unit)

Parameters

Name Description
eventObserver: (String, JSONObject)->Unit

ReturnValue

Name Description
Unit

trackBadgeCollectedButtonPressed

fun trackBadgeCollectedButtonPressed(badgeId: String, badgeLevel: Int)

Parameters

Name Description
badgeId: String
badgeLevel: Int

ReturnValue

Name Description
Unit

trackChatReactionPanelOpen

fun trackChatReactionPanelOpen(messageId: String)

Parameters

Name Description
messageId: String

ReturnValue

Name Description
Unit

trackChatReactionSelected

fun trackChatReactionSelected(chatRoomId: String, messageId: String, reactionId: String, isRemoved: Boolean)

Parameters

Name Description
chatRoomId: String
messageId: String
reactionId: String
isRemoved: Boolean

ReturnValue

Name Description
Unit

trackAlertLinkOpened

fun trackAlertLinkOpened(alertId: String, programId: String, linkUrl: String, widgetType: WidgetType?)

Parameters

Name Description
alertId: String
programId: String
linkUrl: String
widgetType: WidgetType?

ReturnValue

Name Description
Unit

registerSuperProperty

fun registerSuperProperty(analyticsSuperProperties: AnalyticsSuperProperties, value: Any?)

Parameters

Name Description
analyticsSuperProperties: AnalyticsSuperProperties
value: Any?

ReturnValue

Name Description
Unit

trackPointThisProgram

fun trackPointThisProgram(points: Int)

Parameters

Name Description
points: Int

ReturnValue

Name Description
Unit

trackPointTutorialSeen

fun trackPointTutorialSeen(completionType: String, secondsSinceStart: Long)

Parameters

Name Description
completionType: String
secondsSinceStart: Long

ReturnValue

Name Description
Unit

trackFlagButtonPressed

fun trackFlagButtonPressed()

ReturnValue

Name Description
Unit

trackReportingMessage

fun trackReportingMessage()

ReturnValue

Name Description
Unit

trackCancelFlagUi

fun trackCancelFlagUi()

ReturnValue

Name Description
Unit

trackBlockingUser

fun trackBlockingUser()

ReturnValue

Name Description
Unit

registerSuperAndPeopleProperty

fun registerSuperAndPeopleProperty(event: Pair<String, String>)

Parameters

Name Description
event: Pair<String, String>

ReturnValue

Name Description
Unit

trackLastChatStatus

fun trackLastChatStatus(status: Boolean)

Parameters

Name Description
status: Boolean

ReturnValue

Name Description
Unit

trackLastWidgetStatus

fun trackLastWidgetStatus(status: Boolean)

Parameters

Name Description
status: Boolean

ReturnValue

Name Description
Unit

trackConfiguration

fun trackConfiguration(internalAppName: String)

Parameters

Name Description
internalAppName: String

ReturnValue

Name Description
Unit

trackWidgetInteraction

fun trackWidgetInteraction(kind: String, id: String, interactionInfo: AnalyticsWidgetInteractionInfo)

Parameters

Name Description
kind: String
id: String
interactionInfo: AnalyticsWidgetInteractionInfo

ReturnValue

Name Description
Unit

trackSessionStarted

fun trackSessionStarted()

ReturnValue

Name Description
Unit

trackMessageSent

fun trackMessageSent(msgId: String, msg: String?, hasExternalImage: Boolean, chatRoomId: String)

Parameters

Name Description
msgId: String
msg: String?
hasExternalImage: Boolean
chatRoomId: String

ReturnValue

Name Description
Unit

trackMessageDisplayed

fun trackMessageDisplayed(msgId: String, msg: String?, hasExternalImage: Boolean)

Parameters

Name Description
msgId: String
msg: String?
hasExternalImage: Boolean

ReturnValue

Name Description
Unit

trackWidgetReceived

fun trackWidgetReceived(kind: String, id: String)

Parameters

Name Description
kind: String
id: String

ReturnValue

Name Description
Unit

trackWidgetDisplayed

fun trackWidgetDisplayed(kind: String, id: String, linkUrl: String?)

Parameters

Name Description
kind: String
id: String
linkUrl: String?

ReturnValue

Name Description
Unit

trackWidgetDismiss

fun trackWidgetDismiss(kind: String, id: String, interactionInfo: AnalyticsWidgetInteractionInfo, interactable: Boolean?, action: DismissAction)

Parameters

Name Description
kind: String
id: String
interactionInfo: AnalyticsWidgetInteractionInfo
interactable: Boolean?
action: DismissAction

ReturnValue

Name Description
Unit

trackInteraction

fun trackInteraction(kind: String, id: String, interactionType: String, interactionCount: Int)

Parameters

Name Description
kind: String
id: String
interactionType: String
interactionCount: Int

ReturnValue

Name Description
Unit

trackOrientationChange

fun trackOrientationChange(isPortrait: Boolean)

Parameters

Name Description
isPortrait: Boolean

ReturnValue

Name Description
Unit

trackSession

fun trackSession(sessionId: String)

Parameters

Name Description
sessionId: String

ReturnValue

Name Description
Unit

trackButtonTap

fun trackButtonTap(buttonName: String, extra: JsonObject)

Parameters

Name Description
buttonName: String
extra: JsonObject

ReturnValue

Name Description
Unit

trackUsername

fun trackUsername(username: String)

Parameters

Name Description
username: String

ReturnValue

Name Description
Unit

trackKeyboardOpen

fun trackKeyboardOpen(keyboardType: KeyboardType)

Parameters

Name Description
keyboardType: KeyboardType

ReturnValue

Name Description
Unit

trackKeyboardClose

fun trackKeyboardClose(keyboardType: KeyboardType, hideMethod: KeyboardHideReason, chatMessageId: String?)

Parameters

Name Description
keyboardType: KeyboardType
hideMethod: KeyboardHideReason
chatMessageId: String?

ReturnValue

Name Description
Unit