CustomActionCallback
abstract class CustomActionCallback
kotlin.Any | |
↳ | android.support.v4.media.MediaBrowserCompat.CustomActionCallback |
Callback for receiving the result of #sendCustomAction
.
Summary
Public constructors | |
---|---|
<init>() |
Public methods | |
---|---|
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. |
open Unit |
Called when an error happens while performing the custom action or the connected service doesn't support the requested custom action. |
Public constructors
<init>
CustomActionCallback()
Public methods
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. |
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. |
Classes
- MediaMetadataCompat
- MediaMetadataCompat.Builder
- MediaBrowserCompat
- MediaBrowserCompat.ConnectionCallback
- MediaBrowserCompat.CustomActionCallback
- MediaBrowserCompat.ItemCallback
- MediaBrowserCompat.MediaItem
- MediaBrowserCompat.SearchCallback
- MediaBrowserCompat.SubscriptionCallback
- MediaDescriptionCompat
- MediaDescriptionCompat.Builder
- RatingCompat