RemotePlaybackClient.SessionActionCallback


public abstract class RemotePlaybackClient.SessionActionCallback extends RemotePlaybackClient.ActionCallback


Callback for remote playback requests that operate on sessions.

Summary

Public constructors

Public methods

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

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

SessionActionCallback

Added in 1.1.0
public SessionActionCallback()

Public methods

onResult

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

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.