Added in API level 21

ConnectionCallback


class ConnectionCallback
kotlin.Any
   ↳ android.media.browse.MediaBrowser.ConnectionCallback

Callbacks for connection related events.

Summary

Public constructors

Public methods
open Unit

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

open Unit

Invoked when the connection to the media browser failed.

open Unit

Invoked when the client is disconnected from the media browser.

Public constructors

ConnectionCallback

ConnectionCallback()

Public methods

onConnected

Added in API level 21
open fun onConnected(): Unit

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

onConnectionFailed

Added in API level 21
open fun onConnectionFailed(): Unit

Invoked when the connection to the media browser failed.

onConnectionSuspended

Added in API level 21
open fun onConnectionSuspended(): Unit

Invoked when the client is disconnected from the media browser.