public static abstract class MediaRouter.ControlRequestCallback
extends Object
| java.lang.Object | |
| android.support.v7.media.MediaRouter.ControlRequestCallback | |
用媒体控制请求的结果调用的回调。
Public constructors |
|
|---|---|
MediaRouter.ControlRequestCallback() |
|
公共方法(Public methods) |
|
|---|---|
void |
onError(String error, Bundle data) 媒体控制请求失败时调用。 |
void |
onResult(Bundle data) 当媒体控制请求成功时调用。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
MediaRouter.ControlRequestCallback ()
void onError (String error, Bundle data)
媒体控制请求失败时调用。
| 参数(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. |
void onResult (Bundle data)
当媒体控制请求成功时调用。
| 参数(Parameters) | |
|---|---|
data |
Bundle: Result data, or null if none. Contents depend on the media control action. |