RemotePlaybackClient.StatusCallback


abstract class RemotePlaybackClient.StatusCallback


A callback that will receive media status updates.

Summary

Public constructors

Public functions

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

Called when the status of a media item changes.

Unit
onSessionChanged(sessionId: String?)

Called when the session of the remote playback client changes.

Unit
onSessionStatusChanged(
    data: Bundle?,
    sessionId: String,
    sessionStatus: MediaSessionStatus?
)

Called when the status of a media session changes.

Public constructors

StatusCallback

Added in 1.1.0
StatusCallback()

Public functions

onItemStatusChanged

Added in 1.1.0
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: String

The session id.

sessionStatus: MediaSessionStatus?

The session status, or null if unknown.

itemId: String

The item id.

itemStatus: MediaItemStatus

The item status.

onSessionChanged

Added in 1.1.0
fun onSessionChanged(sessionId: String?): Unit

Called when the session of the remote playback client changes.

Parameters
sessionId: String?

The new session id.

onSessionStatusChanged

Added in 1.1.0
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: String

The session id.

sessionStatus: MediaSessionStatus?

The session status, or null if unknown.