CustomActionCallback
abstract class CustomActionCallback
kotlin.Any | |
↳ | android.support.v4.media.MediaBrowserCompat.CustomActionCallback |
Callback for receiving the result of sendCustomAction
.
Summary
Public constructors |
|
---|---|
<init>() Callback for receiving the result of |
Public methods |
|
---|---|
open Unit |
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 |
Called when the custom action finished successfully. |
Public constructors
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. |