RemotePlaybackClient.ActionCallback

public abstract class RemotePlaybackClient.ActionCallback

Known direct subclasses
RemotePlaybackClient.ItemActionCallback

Callback for remote playback requests that operate on items.

RemotePlaybackClient.SessionActionCallback

Callback for remote playback requests that operate on sessions.


Base callback type for remote playback requests.

Summary

Public constructors

Public methods

void
onError(@Nullable String error, int code, @Nullable Bundle data)

Called when a media control request fails.

Public constructors

ActionCallback

Added in 1.1.0
public ActionCallback()

Public methods

onError

Added in 1.1.0
public void onError(@Nullable String error, int code, @Nullable Bundle data)

Called when a media control request fails.

Parameters
@Nullable String error

A localized error message which may be shown to the user, or null if the cause of the error is unclear.

int code

The error code, or ERROR_UNKNOWN if unknown.

@Nullable Bundle data

The error data bundle, or null if none.