MediaBrowserCompat.CustomActionCallback


abstract class MediaBrowserCompat.CustomActionCallback


Callback for receiving the result of sendCustomAction.

Summary

Public constructors

Public functions

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

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

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

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

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

Called when the custom action finished successfully.

Public constructors

CustomActionCallback

Added in 1.1.0
CustomActionCallback()

Public functions

onError

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