MediaBrowserCompat.CustomActionCallback


public abstract class MediaBrowserCompat.CustomActionCallback


Callback for receiving the result of sendCustomAction.

Summary

Public constructors

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.

Public constructors

CustomActionCallback

Added in 1.1.0
public CustomActionCallback()

Public methods

onError

Added in 1.1.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
String action

The custom action sent to the connected service.

Bundle extras

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

Bundle data

The additional data delivered from the connected service.

onProgressUpdate

Added in 1.1.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
String action

The custom action sent to the connected service.

Bundle extras

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

Bundle data

The additional data delivered from the connected service.

onResult

Added in 1.1.0
public void onResult(String action, Bundle extras, Bundle resultData)

Called when the custom action finished successfully.

Parameters
String action

The custom action sent to the connected service.

Bundle extras

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

Bundle resultData

The additional data delivered from the connected service.