Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

CustomActionCallback

abstract class CustomActionCallback
kotlin.Any
   ↳ android.support.v4.media.MediaBrowserCompat.CustomActionCallback

Callback for receiving the result of sendCustomAction.

Summary

Public constructors

Callback for receiving the result of sendCustomAction.

Public methods

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

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

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

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

Called when the custom action finished successfully.

Public constructors

<init>

CustomActionCallback()

Callback for receiving the result of sendCustomAction.

Public methods

onError

open 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 String!: The bundle of service-specific arguments sent to the connected service.
data String!: The additional data delivered from the connected service.

onProgressUpdate

open 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 String!: The bundle of service-specific arguments sent to the connected service.
data String!: The additional data delivered from the connected service.

onResult

open 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 String!: The bundle of service-specific arguments sent to the connected service.
resultData String!: The additional data delivered from the connected service.