AnalyticsEvent


public abstract class AnalyticsEvent

Known direct subclasses
BrowseChangeEvent

Describes a browse node change event.

ErrorEvent

Analytics event indicating a parsing error.

MediaClickedEvent

Describes a media clicked event.

ViewChangeEvent

Describes a view entry or exit event.

VisibleItemsEvent

Describes a visible items event.


Base class for Analytics events.

Summary

Constants

static final int

Indicates BrowseChangeEvent

static final int

Indicates ErrorEvent

static final int

Indicates MediaClickedEvent

static final int

Indicates an unknown event

static final int

Indicates ViewChangeEvent

static final int

Indicates VisibleItemsEvent

static final int

Indicates view was hidden

static final int

Indicates view action mode is default/none

static final int

Indicates view action mode is from a scroll

static final int

Indicates view was shown

static final int

Indicates event generated from Browse Action Overflow view component

static final int

Indicates event generated from Browse List view component

static final int

Indicates event generated from Browse Tabs view component

static final int

Indicates event generated from Error Message view component

static final int

Indicates event generated from Launcher view component

static final int

Indicates event generated from Media Host view component

static final int

Indicates event generated from Mini Playback view component

static final int

Indicates event generated from Playback view component

static final int

Indicates event generated from Queue List view component

static final int

Indicates event generated from Settings view component

static final int

Indicates event generated from an Unknown view component

Public methods

int

Returns the analytics version.

@NonNull String

Returns the platform component that is generating analytic events.

int

Returns the EventType.

long

Returns the time of the event in milliseconds since 1970-01-01T00:00:00Z.

@NonNull String

Constants

EVENT_TYPE_BROWSE_NODE_CHANGED_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_BROWSE_NODE_CHANGED_EVENT = 3

Indicates BrowseChangeEvent

EVENT_TYPE_ERROR_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_ERROR_EVENT = 5

Indicates ErrorEvent

EVENT_TYPE_MEDIA_CLICKED_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_MEDIA_CLICKED_EVENT = 2

Indicates MediaClickedEvent

EVENT_TYPE_UNKNOWN_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_UNKNOWN_EVENT = 0

Indicates an unknown event

EVENT_TYPE_VIEW_CHANGE_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_VIEW_CHANGE_EVENT = 4

Indicates ViewChangeEvent

EVENT_TYPE_VISIBLE_ITEMS_EVENT

Added in 1.7.0-beta02
public static final int EVENT_TYPE_VISIBLE_ITEMS_EVENT = 1

Indicates VisibleItemsEvent

VIEW_ACTION_HIDE

Added in 1.7.0-beta02
public static final int VIEW_ACTION_HIDE = 0

Indicates view was hidden

VIEW_ACTION_MODE_NONE

Added in 1.7.0-beta02
public static final int VIEW_ACTION_MODE_NONE = 0

Indicates view action mode is default/none

VIEW_ACTION_MODE_SCROLL

Added in 1.7.0-beta02
public static final int VIEW_ACTION_MODE_SCROLL = 1

Indicates view action mode is from a scroll

VIEW_ACTION_SHOW

Added in 1.7.0-beta02
public static final int VIEW_ACTION_SHOW = 1

Indicates view was shown

VIEW_COMPONENT_BROWSE_ACTION_OVERFLOW

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_BROWSE_ACTION_OVERFLOW = 8

Indicates event generated from Browse Action Overflow view component

VIEW_COMPONENT_BROWSE_LIST

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_BROWSE_LIST = 1

Indicates event generated from Browse List view component

VIEW_COMPONENT_BROWSE_TABS

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_BROWSE_TABS = 2

Indicates event generated from Browse Tabs view component

VIEW_COMPONENT_ERROR_MESSAGE

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_ERROR_MESSAGE = 10

Indicates event generated from Error Message view component

VIEW_COMPONENT_LAUNCHER

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_LAUNCHER = 6

Indicates event generated from Launcher view component

VIEW_COMPONENT_MEDIA_HOST

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_MEDIA_HOST = 9

Indicates event generated from Media Host view component

VIEW_COMPONENT_MINI_PLAYBACK

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_MINI_PLAYBACK = 5

Indicates event generated from Mini Playback view component

VIEW_COMPONENT_PLAYBACK

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_PLAYBACK = 4

Indicates event generated from Playback view component

VIEW_COMPONENT_QUEUE_LIST

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_QUEUE_LIST = 3

Indicates event generated from Queue List view component

VIEW_COMPONENT_SETTINGS_VIEW

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_SETTINGS_VIEW = 7

Indicates event generated from Settings view component

VIEW_COMPONENT_UNKNOWN_COMPONENT

Added in 1.7.0-beta02
public static final int VIEW_COMPONENT_UNKNOWN_COMPONENT = 0

Indicates event generated from an Unknown view component

Public methods

getAnalyticsVersion

Added in 1.7.0-beta02
public int getAnalyticsVersion()

Returns the analytics version.

getComponent

Added in 1.7.0-beta02
public @NonNull String getComponent()

Returns the platform component that is generating analytic events.

Returns
@NonNull String

component of platform that is sending events.

getEventType

Added in 1.7.0-beta02
public int getEventType()

Returns the EventType.

Returns
int

event type

getTimestampMillis

Added in 1.7.0-beta02
public long getTimestampMillis()

Returns the time of the event in milliseconds since 1970-01-01T00:00:00Z.

toString

public @NonNull String toString()