added in version 25.4.0
belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1

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

From class java.lang.Object

Public constructors

MediaBrowserCompat.CustomActionCallback

added in version 25.4.0
MediaBrowserCompat.CustomActionCallback ()

Public methods

onError

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