MediaBrowserCompat.CustomActionCallback

Added in 1.1.0
Deprecated in 1.8.0

abstract class MediaBrowserCompat.CustomActionCallback


Callback for receiving the result of sendCustomAction.

Summary

Public constructors

This function is deprecated. Deprecated in Java

Public functions

Unit
onError(action: String!, extras: Bundle!, data: Bundle!)

This function is deprecated. Deprecated in Java

Unit
onProgressUpdate(action: String!, extras: Bundle!, data: Bundle!)

This function is deprecated. Deprecated in Java

Unit
onResult(action: String!, extras: Bundle!, resultData: Bundle!)

This function is deprecated. Deprecated in Java

Public constructors

CustomActionCallback

Added in 1.1.0
Deprecated in 1.8.0
CustomActionCallback()

Public functions

onError

Added in 1.1.0
Deprecated in 1.8.0
fun onError(action: String!, extras: Bundle!, data: Bundle!): Unit

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 1.1.0
Deprecated in 1.8.0
fun onProgressUpdate(action: String!, extras: Bundle!, data: Bundle!): Unit

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 1.1.0
Deprecated in 1.8.0
fun onResult(action: String!, extras: Bundle!, resultData: Bundle!): Unit

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.