The Android Developer Challenge is back! Submit your idea before December 2.

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