Most visited

Recently visited

Added in API level 21

MediaBrowser.ConnectionCallback

public static class MediaBrowser.ConnectionCallback
extends Object

java.lang.Object
   ↳ android.media.browse.MediaBrowser.ConnectionCallback


与连接相关的事件的回调。

Summary

Public constructors

MediaBrowser.ConnectionCallback()

Public methods

void onConnected()

当请求成功完成时,在 connect()之后调用。

void onConnectionFailed()

当与媒体浏览器的连接失败时调用。

void onConnectionSuspended()

当客户端与媒体浏览器断开连接时调用。

Inherited methods

From class java.lang.Object

Public constructors

MediaBrowser.ConnectionCallback

Added in API level 21
MediaBrowser.ConnectionCallback ()

Public methods

onConnected

Added in API level 21
void onConnected ()

当请求成功完成时,在 connect()之后调用。

onConnectionFailed

Added in API level 21
void onConnectionFailed ()

当与媒体浏览器的连接失败时调用。

onConnectionSuspended

Added in API level 21
void onConnectionSuspended ()

当客户端与媒体浏览器断开连接时调用。

Hooray!