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

MediaBrowserCompat.CustomActionCallback

public static abstract class MediaBrowserCompat.CustomActionCallback
extends Object

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


Callback for receiving the result of MediaBrowserCompat.sendCustomAction(String, Bundle, MediaBrowserCompat.CustomActionCallback).

Summary

Public constructors

MediaBrowserCompat.CustomActionCallback()

Public methods

void onError(String action, Bundle extras, Bundle data)

Called when an error happens while performing the custom action or the connected service doesn't support the requested custom action.

void onProgressUpdate(String action, Bundle extras, Bundle data)

Called when an interim update was delivered from the connected service while performing the custom action.

void onResult(String action, Bundle extras, Bundle resultData)

Called when the custom action finished successfully.

Inherited methods

Public constructors

MediaBrowserCompat.CustomActionCallback

added in version 25.4.0
public MediaBrowserCompat.CustomActionCallback ()

Public methods

onError

added in version 25.4.0
public void onError (String action, 
                Bundle extras, 
                Bundle data)

Called when an error happens while performing the custom action or the connected service doesn't support the requested custom action.

Parameters
action String: The custom action sent to the connected service.

extras Bundle: The bundle of service-specific arguments sent to the connected service.

data Bundle: The additional data delivered from the connected service.

onProgressUpdate

added in version 25.4.0
public void onProgressUpdate (String action, 
                Bundle extras, 
                Bundle data)

Called when an interim update was delivered from the connected service while performing the custom action.

Parameters
action String: The custom action sent to the connected service.

extras Bundle: The bundle of service-specific arguments sent to the connected service.

data Bundle: The additional data delivered from the connected service.

onResult

added in version 25.4.0
public void onResult (String action, 
                Bundle extras, 
                Bundle resultData)

Called when the custom action finished successfully.

Parameters
action String: The custom action sent to the connected service.

extras Bundle: The bundle of service-specific arguments sent to the connected service.

resultData Bundle: The additional data delivered from the connected service.