Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 24.1.0
belongs to Maven artifact androidx.media:media:1.0.0-rc01

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 failed.

void onConnectionSuspended()

Invoked when the client is disconnected from the media browser.

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.

onConnectionFailed

added in version 24.1.0
public void onConnectionFailed ()

Invoked when the connection to the media browser failed.

onConnectionSuspended

added in version 24.1.0
public void onConnectionSuspended ()

Invoked when the client is disconnected from the media browser.