Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

ControlRequestCallback

abstract class ControlRequestCallback
kotlin.Any
   ↳ androidx.mediarouter.media.MediaRouter.ControlRequestCallback

Callback which is invoked with the result of a media control request.

Summary

Public constructors

Callback which is invoked with the result of a media control request.

Public methods
open Unit
onResult(data: Bundle!)

Called when a media control request succeeds.

open Unit
onError(error: String!, data: Bundle!)

Called when a media control request fails.

Public constructors

<init>

ControlRequestCallback()

Callback which is invoked with the result of a media control request.

Public methods

onResult

open fun onResult(data: Bundle!): Unit

Called when a media control request succeeds.

Parameters
data Bundle!: Result data, or null if none. Contents depend on the media control action.

onError

open fun onError(error: String!, 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.
data String!: Error data, or null if none. Contents depend on the media control action.