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

added in version 24.1.0
public MediaBrowserCompat.ConnectionCallback ()

Public methods

onConnected

added in version 24.1.0
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

added in version 24.1.0
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

added in version 24.1.0
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.