BrowseChangeEvent


class BrowseChangeEvent : AnalyticsEvent


Describes a browse node change event.

See also
<a href="URL

Summary

Constants

const Int

Indicates browsing linked media item

const Int

Indicates browsing media items under linked media item

const Int

Indicates browsing media items under a search result media item

const Int

Indicates browsing search results media items

const Int

Indicates browsing under media items tree root

const Int

Indicates browsing media items tree root

const Int

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

const Int

Indicates an unknown browse mode type.

Public functions

Int

Mode Platform Component is viewing Browse Nodes.

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.

String

Inherited Constants

From androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent
const Int

Indicates BrowseChangeEvent

const Int

Indicates ErrorEvent

const Int

Indicates MediaClickedEvent

const Int

Indicates an unknown event

const Int

Indicates ViewChangeEvent

const Int

Indicates VisibleItemsEvent

const Int

Indicates view was hidden

const Int

Indicates view action mode is default/none

const Int

Indicates view action mode is from a scroll

const Int

Indicates view was shown

const Int

Indicates event generated from Browse Action Overflow view component

const Int

Indicates event generated from Browse List view component

const Int

Indicates event generated from Browse Tabs view component

const Int

Indicates event generated from Error Message view component

const Int

Indicates event generated from Launcher view component

const Int

Indicates event generated from Media Host view component

const Int

Indicates event generated from Mini Playback view component

const Int

Indicates event generated from Playback view component

const Int

Indicates event generated from Queue List view component

const Int

Indicates event generated from Settings view component

const Int

Indicates event generated from an Unknown view component

Inherited functions

From androidx.car.app.mediaextensions.analytics.event.AnalyticsEvent
Int

Returns the analytics version.

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-beta03
const val BROWSE_MODE_LINK = 4: Int

Indicates browsing linked media item

Added in 1.7.0-beta03
const val BROWSE_MODE_LINK_BROWSE = 5: Int

Indicates browsing media items under linked media item

BROWSE_MODE_SEARCH_BROWSE

Added in 1.7.0-beta03
const val BROWSE_MODE_SEARCH_BROWSE = 6: Int

Indicates browsing media items under a search result media item

BROWSE_MODE_SEARCH_RESULTS

Added in 1.7.0-beta03
const val BROWSE_MODE_SEARCH_RESULTS = 7: Int

Indicates browsing search results media items

BROWSE_MODE_TREE_BROWSE

Added in 1.7.0-beta03
const val BROWSE_MODE_TREE_BROWSE = 2: Int

Indicates browsing under media items tree root

BROWSE_MODE_TREE_ROOT

Added in 1.7.0-beta03
const val BROWSE_MODE_TREE_ROOT = 1: Int

Indicates browsing media items tree root

BROWSE_MODE_TREE_TAB

Added in 1.7.0-beta03
const val BROWSE_MODE_TREE_TAB = 3: Int

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

BROWSE_MODE_UNKNOWN

Added in 1.7.0-beta03
const val BROWSE_MODE_UNKNOWN = 0: Int

Indicates an unknown browse mode type.

Public functions

getBrowseMode

Added in 1.7.0-beta03
fun getBrowseMode(): Int

Mode Platform Component is viewing Browse Nodes.

getBrowseNodeId

Added in 1.7.0-beta03
fun getBrowseNodeId(): String

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

Returns
String

String MediaItem ID.

getViewAction

Added in 1.7.0-beta03
fun getViewAction(): Int

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

toString

fun toString(): String