Google is committed to advancing racial equity for Black communities. See how.

ActionCallback

abstract class ActionCallback
kotlin.Any
   ↳ androidx.mediarouter.media.RemotePlaybackClient.ActionCallback

Base callback type for remote playback requests.

Summary

Public constructors

Base callback type for remote playback requests.

Public methods
open Unit
onError(error: String!, code: Int, data: Bundle!)

Called when a media control request fails.

Public constructors

<init>

ActionCallback()

Base callback type for remote playback requests.

Public methods

onError

open 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 MediaControlIntent#ERROR_UNKNOWN if unknown.
data Bundle!: The error data bundle, or null if none.