RemotePlaybackClient.ItemActionCallback


public abstract class RemotePlaybackClient.ItemActionCallback extends RemotePlaybackClient.ActionCallback


Callback for remote playback requests that operate on items.

Summary

Public constructors

Public methods

void
onResult(
    @NonNull Bundle data,
    @NonNull String sessionId,
    @Nullable MediaSessionStatus sessionStatus,
    @NonNull String itemId,
    @NonNull MediaItemStatus itemStatus
)

Called when the request succeeds.

Inherited methods

From androidx.mediarouter.media.RemotePlaybackClient.ActionCallback
void
onError(@Nullable String error, int code, @Nullable Bundle data)

Called when a media control request fails.

Public constructors

ItemActionCallback

Added in 1.1.0
public ItemActionCallback()

Public methods

onResult

Added in 1.1.0
public void onResult(
    @NonNull Bundle data,
    @NonNull String sessionId,
    @Nullable MediaSessionStatus sessionStatus,
    @NonNull String itemId,
    @NonNull MediaItemStatus itemStatus
)

Called when the request succeeds.

Parameters
@NonNull Bundle data

The result data bundle.

@NonNull String sessionId

The session id.

@Nullable MediaSessionStatus sessionStatus

The session status, or null if unknown.

@NonNull String itemId

The item id.

@NonNull MediaItemStatus itemStatus

The item status.