Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

StatusCallback

abstract class StatusCallback
kotlin.Any
   ↳ androidx.mediarouter.media.RemotePlaybackClient.StatusCallback

A callback that will receive media status updates.

Summary

Public constructors

Public methods
open Unit
onSessionStatusChanged(data: Bundle!, sessionId: String!, sessionStatus: MediaSessionStatus!)

Called when the status of a media session changes.

open Unit
onSessionChanged(sessionId: String!)

Called when the session of the remote playback client changes.

open Unit
onItemStatusChanged(data: Bundle!, sessionId: String!, sessionStatus: MediaSessionStatus!, itemId: String!, itemStatus: MediaItemStatus!)

Called when the status of a media item changes.

Public constructors

<init>

StatusCallback()

Public methods

onSessionStatusChanged

open fun onSessionStatusChanged(data: Bundle!, sessionId: String!, sessionStatus: MediaSessionStatus!): Unit

Called when the status of a media session changes.

Parameters
data Bundle!: The result data bundle.
sessionId Bundle!: The session id.
sessionStatus Bundle!: The session status, or null if unknown.

onSessionChanged

open fun onSessionChanged(sessionId: String!): Unit

Called when the session of the remote playback client changes.

Parameters
sessionId String!: The new session id.

onItemStatusChanged

open fun onItemStatusChanged(data: Bundle!, sessionId: String!, sessionStatus: MediaSessionStatus!, itemId: String!, itemStatus: MediaItemStatus!): Unit

Called when the status of a media item changes.

Parameters
data Bundle!: The result data bundle.
sessionId Bundle!: The session id.
sessionStatus Bundle!: The session status, or null if unknown.
itemId Bundle!: The item id.
itemStatus Bundle!: The item status.