public abstract class

RemotePlaybackClient.StatusCallback

extends java.lang.Object

 java.lang.Object

↳androidx.mediarouter.media.RemotePlaybackClient.StatusCallback

Overview

A callback that will receive media status updates.

Summary

Constructors
publicStatusCallback()

Methods
public voidonItemStatusChanged(Bundle data, java.lang.String sessionId, MediaSessionStatus sessionStatus, java.lang.String itemId, MediaItemStatus itemStatus)

Called when the status of a media item changes.

public voidonSessionChanged(java.lang.String sessionId)

Called when the session of the remote playback client changes.

public voidonSessionStatusChanged(Bundle data, java.lang.String sessionId, MediaSessionStatus sessionStatus)

Called when the status of a media session changes.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public StatusCallback()

Methods

public void onItemStatusChanged(Bundle data, java.lang.String sessionId, MediaSessionStatus sessionStatus, java.lang.String itemId, MediaItemStatus itemStatus)

Called when the status of a media item changes.

Parameters:

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

public void onSessionStatusChanged(Bundle data, java.lang.String sessionId, MediaSessionStatus sessionStatus)

Called when the status of a media session changes.

Parameters:

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

public void onSessionChanged(java.lang.String sessionId)

Called when the session of the remote playback client changes.

Parameters:

sessionId: The new session id.