public abstract static class MediaRouter.ControlRequestCallback extends Object
Constructor and Description |
---|
ControlRequestCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onError(String error,
Bundle data)
Called when a media control request fails.
|
void |
onResult(Bundle data)
Called when a media control request succeeds.
|
public void onResult(Bundle data)
data
- Result data, or null if none.
Contents depend on the media control action
.public void onError(String error, Bundle data)
error
- A localized error message which may be shown to the user, or null
if the cause of the error is unclear.data
- Error data, or null if none.
Contents depend on the media control action
.