RemotePlaybackClient.ActionCallback

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 functions

Unit
onError(error: String?, code: Int, data: Bundle?)

Called when a media control request fails.

Public constructors

ActionCallback

Added in 1.1.0
ActionCallback()

Public functions

onError

Added in 1.1.0
fun onError(error: String?, code: Int, data: Bundle?): Unit

Called when a media control request fails.

Parameters
error: String?

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

code: Int

The error code, or ERROR_UNKNOWN if unknown.

data: Bundle?

The error data bundle, or null if none.