MixpanelAnalytics
class MixpanelAnalytics
Fields
Name | Description |
---|---|
val context: Context
|
Constructors
<init>
constructor(context: Context, token: String?, clientId: String)
Parameters
Name | Description |
---|---|
context: Context
|
|
token: String?
|
|
clientId: String
|
Methods
setEventObserver
fun setEventObserver(eventObserver: (String, JSONObject)->Unit)
Parameters
Name | Description |
---|---|
eventObserver: (String, JSONObject)->Unit
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackFlagButtonPressed
fun trackFlagButtonPressed()
ReturnValue
Name | Description |
---|---|
Unit
|
trackReportingMessage
fun trackReportingMessage()
ReturnValue
Name | Description |
---|---|
Unit
|
trackBlockingUser
fun trackBlockingUser()
ReturnValue
Name | Description |
---|---|
Unit
|
trackCancelFlagUi
fun trackCancelFlagUi()
ReturnValue
Name | Description |
---|---|
Unit
|
registerSuperAndPeopleProperty
fun registerSuperAndPeopleProperty(event: Pair
Parameters
Name | Description |
---|---|
event: Pair
|
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
|
trackKeyboardClose
fun trackKeyboardClose(keyboardType: KeyboardType, hideMethod: KeyboardHideReason, chatMessageId: String?)
Parameters
Name | Description |
---|---|
keyboardType: KeyboardType
|
|
hideMethod: KeyboardHideReason
|
|
chatMessageId: String?
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackKeyboardOpen
fun trackKeyboardOpen(keyboardType: KeyboardType)
Parameters
Name | Description |
---|---|
keyboardType: KeyboardType
|
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
|
trackPointTutorialSeen
fun trackPointTutorialSeen(completionType: String, secondsSinceStart: Long)
Parameters
Name | Description |
---|---|
completionType: String
|
|
secondsSinceStart: Long
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackPointThisProgram
fun trackPointThisProgram(points: Int)
Parameters
Name | Description |
---|---|
points: Int
|
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
|
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
|
trackWidgetDisplayed
fun trackWidgetDisplayed(kind: String, id: String, linkUrl: String?)
Parameters
Name | Description |
---|---|
kind: String
|
|
id: String
|
|
linkUrl: String?
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackWidgetReceived
fun trackWidgetReceived(kind: String, id: String)
Parameters
Name | Description |
---|---|
kind: String
|
|
id: 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
|
trackButtonTap
fun trackButtonTap(buttonName: String, extra: JsonObject)
Parameters
Name | Description |
---|---|
buttonName: String
|
|
extra: JsonObject
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackSession
fun trackSession(sessionId: String)
Parameters
Name | Description |
---|---|
sessionId: String
|
ReturnValue
Name | Description |
---|---|
Unit
|
trackUsername
fun trackUsername(username: String)
Parameters
Name | Description |
---|---|
username: String
|
ReturnValue
Name | Description |
---|---|
Unit
|
CompanionObject
MixpanelAnalytics
class MixpanelAnalytics
Fields
Name | Description |
---|---|
const KEY_CHAT_MESSAGE_SENT: String
|
|
const KEY_CHAT_MESSAGE_DISPLAYED: String
|
|
const KEY_WIDGET_RECEIVED: String
|
|
const KEY_WIDGET_DISPLAYED: String
|
|
const KEY_WIDGET_INTERACTION: String
|
|
const KEY_WIDGET_USER_DISMISS: String
|
|
const KEY_ORIENTATION_CHANGED: String
|
|
const KEY_ACTION_TAP: String
|
|
const KEY_KEYBOARD_SELECTED: String
|
|
const KEY_KEYBOARD_HIDDEN: String
|
|
const KEY_FLAG_BUTTON_PRESSED: String
|
|
const KEY_FLAG_ACTION_SELECTED: String
|
|
const KEY_POINT_TUTORIAL_COMPLETED: String
|
|
const KEY_REASON: String
|
|
const KEY_EVENT_BADGE_COLLECTED_BUTTON_PRESSED: String
|
|
const KEY_EVENT_CHAT_REACTION_PANEL_OPEN: String
|
|
const KEY_EVENT_CHAT_REACTION_ADDED: String
|
|
const KEY_EVENT_CHAT_REACTION_REMOVED: String
|
|
const KEY_EVENT_ALERT_LINK_OPENED: String
|