Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

MediaBrowser.ConnectionCallback

public static class MediaBrowser.ConnectionCallback
extends Object

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


Callbacks for connection related events.

Summary

Public constructors

MediaBrowser.ConnectionCallback()

Public methods

void onConnected()

Invoked after MediaBrowser.connect() when the request has successfully completed.

void onConnectionFailed()

Invoked when the connection to the media browser failed.

void onConnectionSuspended()

Invoked when the client is disconnected from the media browser.

Inherited methods

Public constructors

MediaBrowser.ConnectionCallback

added in API level 21
public MediaBrowser.ConnectionCallback ()

Public methods

onConnected

added in API level 21
public void onConnected ()

Invoked after MediaBrowser.connect() when the request has successfully completed.

onConnectionFailed

added in API level 21
public void onConnectionFailed ()

Invoked when the connection to the media browser failed.

onConnectionSuspended

added in API level 21
public void onConnectionSuspended ()

Invoked when the client is disconnected from the media browser.