# RemotePlaybackClient.SessionActionCallback

Artifact: [androidx.mediarouter:mediarouter](https://developer.android.com/jetpack/androidx/releases/mediarouter) [View Source](https://cs.android.com/search?q=file:androidx/mediarouter/media/RemotePlaybackClient.java+class:androidx.mediarouter.media.RemotePlaybackClient.SessionActionCallback) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/mediarouter#1.1.0)

*** ** * ** ***


```
public abstract class RemotePlaybackClient.SessionActionCallback extends RemotePlaybackClient.ActionCallback
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.mediarouter.media.RemotePlaybackClient.ActionCallback](https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.ActionCallback) ||
|   | ↳ | [androidx.mediarouter.media.RemotePlaybackClient.SessionActionCallback](https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.SessionActionCallback) |

*** ** * ** ***

Callback for remote playback requests that operate on sessions.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.SessionActionCallback#SessionActionCallback()()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.SessionActionCallback#onResult(android.os.Bundle,java.lang.String,androidx.mediarouter.media.MediaSessionStatus)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html data, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html sessionId, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/mediarouter/media/MediaSessionStatus sessionStatus )` Called when the request succeeds. |

### Inherited methods

From [androidx.mediarouter.media.RemotePlaybackClient.ActionCallback](https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.ActionCallback) `void` `https://developer.android.com/reference/androidx/mediarouter/media/RemotePlaybackClient.ActionCallback#onError(java.lang.String,int,android.os.Bundle)(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/lang/String.html error, int code, @https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/android/os/Bundle.html 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](https://developer.android.com/jetpack/androidx/releases/mediarouter#1.1.0)

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

Called when the request succeeds.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/os/Bundle.html data` | The result data bundle. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html sessionId` | The session id. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/mediarouter/media/MediaSessionStatus sessionStatus` | The session status, or null if unknown. |