RemotePlaybackClient.ItemActionCallback


abstract class RemotePlaybackClient.ItemActionCallback : RemotePlaybackClient.ActionCallback


Callback for remote playback requests that operate on items.

Summary

Public constructors

Public functions

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

Called when the request succeeds.

Inherited functions

From androidx.mediarouter.media.RemotePlaybackClient.ActionCallback
Unit
onError(error: String?, code: Int, data: Bundle?)

Called when a media control request fails.

Public constructors

ItemActionCallback

Added in 1.1.0
ItemActionCallback()

Public functions

onResult

Added in 1.1.0
fun onResult(
    data: Bundle,
    sessionId: String,
    sessionStatus: MediaSessionStatus?,
    itemId: String,
    itemStatus: MediaItemStatus
): Unit

Called when the request succeeds.

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.