RemotePlaybackClient.SessionActionCallback


abstract class RemotePlaybackClient.SessionActionCallback : RemotePlaybackClient.ActionCallback


Callback for remote playback requests that operate on sessions.

Summary

Public constructors

Public functions

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

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

SessionActionCallback

Added in 1.1.0
SessionActionCallback()

Public functions

onResult

Added in 1.1.0
fun onResult(
    data: Bundle,
    sessionId: String,
    sessionStatus: MediaSessionStatus?
): 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.