Most visited

Recently visited

MediaRouter.ControlRequestCallback

public static abstract class MediaRouter.ControlRequestCallback
extends Object

java.lang.Object
   ↳ android.support.v7.media.MediaRouter.ControlRequestCallback


用媒体控制请求的结果调用的回调。

也可以看看:

Summary

Public constructors

MediaRouter.ControlRequestCallback()

Public methods

void onError(String error, Bundle data)

媒体控制请求失败时调用。

void onResult(Bundle data)

当媒体控制请求成功时调用。

Inherited methods

From class java.lang.Object

Public constructors

MediaRouter.ControlRequestCallback

MediaRouter.ControlRequestCallback ()

Public methods

onError

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.

onResult

void onResult (Bundle data)

当媒体控制请求成功时调用。

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

Hooray!