MediaRouter.ControlRequestCallback


abstract class MediaRouter.ControlRequestCallback


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

Summary

Public constructors

Public functions

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

Called when a media control request fails.

Unit
onResult(data: Bundle?)

Called when a media control request succeeds.

Public constructors

ControlRequestCallback

Added in 1.1.0
ControlRequestCallback()

Public functions

onError

Added in 1.1.0
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: Bundle?

Error data, or null if none. Contents depend on the media control action.

onResult

Added in 1.1.0
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.