BrowseChangeEvent


public class BrowseChangeEvent extends AnalyticsEvent


Describes a browse node change event.

See also
<a href="URL

Summary

Constants

static final int

Indicates browsing linked media item

static final int

Indicates browsing media items under linked media item

static final int

Indicates browsing media items under a search result media item

static final int

Indicates browsing search results media items

static final int

Indicates browsing under media items tree root

static final int

Indicates browsing media items tree root

static final int

Indicates browsing media items one level under root, i.e. tabs.

static final int

Indicates an unknown browse mode type.

Public methods

int

Mode Platform Component is viewing Browse Nodes.

@NonNull String

Returns the android.media.browse.MediaBrowser.MediaItem ID that is the new browse node.

int

Returns the androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent.ViewAction related to this Browse Change.

@NonNull String

Inherited Constants

From androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent
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

Inherited methods

From androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent
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.

Constants

BROWSE_MODE_LINK

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

Indicates browsing linked media item

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

Indicates browsing media items under linked media item

BROWSE_MODE_SEARCH_BROWSE

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

Indicates browsing media items under a search result media item

BROWSE_MODE_SEARCH_RESULTS

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

Indicates browsing search results media items

BROWSE_MODE_TREE_BROWSE

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

Indicates browsing under media items tree root

BROWSE_MODE_TREE_ROOT

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

Indicates browsing media items tree root

BROWSE_MODE_TREE_TAB

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

Indicates browsing media items one level under root, i.e. tabs.

BROWSE_MODE_UNKNOWN

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

Indicates an unknown browse mode type.

Public methods

getBrowseMode

Added in 1.7.0-beta02
public int getBrowseMode()

Mode Platform Component is viewing Browse Nodes.

getBrowseNodeId

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

Returns the android.media.browse.MediaBrowser.MediaItem ID that is the new browse node.

Returns
@NonNull String

String MediaItem ID.

getViewAction

Added in 1.7.0-beta02
public int getViewAction()

Returns the androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent.ViewAction related to this Browse Change.

toString

public @NonNull String toString()