Most visited

Recently visited

RemotePlaybackClient.StatusCallback

public static abstract class RemotePlaybackClient.StatusCallback
extends Object

java.lang.Object
   ↳ android.support.v7.media.RemotePlaybackClient.StatusCallback


将接收媒体状态更新的回调。

Summary

Public constructors

RemotePlaybackClient.StatusCallback()

Public methods

void onItemStatusChanged(Bundle data, String sessionId, MediaSessionStatus sessionStatus, String itemId, MediaItemStatus itemStatus)

当媒体项目的状态改变时调用。

void onSessionChanged(String sessionId)

当远程回放客户端的会话改变时调用。

void onSessionStatusChanged(Bundle data, String sessionId, MediaSessionStatus sessionStatus)

当媒体会话的状态改变时调用。

Inherited methods

From class java.lang.Object

Public constructors

RemotePlaybackClient.StatusCallback

RemotePlaybackClient.StatusCallback ()

Public methods

onItemStatusChanged

void onItemStatusChanged (Bundle data, 
                String sessionId, 
                MediaSessionStatus sessionStatus, 
                String itemId, 
                MediaItemStatus itemStatus)

当媒体项目的状态改变时调用。

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

void onSessionChanged (String sessionId)

当远程回放客户端的会话改变时调用。

Parameters
sessionId String: The new session id.

onSessionStatusChanged

void onSessionStatusChanged (Bundle data, 
                String sessionId, 
                MediaSessionStatus sessionStatus)

当媒体会话的状态改变时调用。

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

Hooray!