The Android Developer Challenge is back! Submit your idea before December 2.

MediaBrowserCompat.ConnectionCallback

public static class MediaBrowserCompat.ConnectionCallback
extends Object

java.lang.Object
   ↳ android.support.v4.media.MediaBrowserCompat.ConnectionCallback


Callbacks for connection related events.

Summary

Public constructors

MediaBrowserCompat.ConnectionCallback()

Public methods

void onConnected()

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

void onConnectionFailed()

Invoked when the connection to the media browser service failed.

void onConnectionSuspended()

Invoked when a connection to the browser service has been lost.

Inherited methods

Public constructors

MediaBrowserCompat.ConnectionCallback

public MediaBrowserCompat.ConnectionCallback ()

Public methods

onConnected

public void onConnected ()

Invoked after MediaBrowserCompat.connect() when the request has successfully completed. This can also be called when the service is next running after it crashed or has been killed.

onConnectionFailed

public void onConnectionFailed ()

Invoked when the connection to the media browser service failed. Connection failures can happen when the browser failed to bind to the service, or when it is rejected from the service.

onConnectionSuspended

public void onConnectionSuspended ()

Invoked when a connection to the browser service has been lost. This typically happens when the process hosting the service has crashed or been killed. This does not remove the connection itself -- this binding to the service will remain active, and onConnected() will be called when the service is next running.