MediaRouter.ControlRequestCallback

public abstract class MediaRouter.ControlRequestCallback


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

Summary

Public constructors

Public methods

void

Called when a media control request fails.

void

Called when a media control request succeeds.

Public constructors

ControlRequestCallback

Added in 1.1.0
public ControlRequestCallback()

Public methods

onError

Added in 1.1.0
public void onError(@Nullable String error, @Nullable Bundle data)

Called when a media control request fails.

Parameters
@Nullable String error

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

@Nullable Bundle data

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

onResult

Added in 1.1.0
public void onResult(@Nullable Bundle data)

Called when a media control request succeeds.

Parameters
@Nullable Bundle data

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