belongs to Maven artifact com.android.support:support-media-compat:28.0.0-alpha1
MediaBrowserCompat.CustomActionCallback
public
static
abstract
class
MediaBrowserCompat.CustomActionCallback
extends Object
java.lang.Object | |
↳ | android.support.v4.media.MediaBrowserCompat.CustomActionCallback |
Callback for receiving the result of sendCustomAction(String, Bundle, MediaBrowserCompat.CustomActionCallback)
.
Summary
Public constructors | |
---|---|
MediaBrowserCompat.CustomActionCallback()
|
Public methods | |
---|---|
void
|
onError(String action, Bundle extras, Bundle data)
Called when an error happens while performing the custom action or the connected service doesn't support the requested custom action. |
void
|
onProgressUpdate(String action, Bundle extras, Bundle data)
Called when an interim update was delivered from the connected service while performing the custom action. |
void
|
onResult(String action, Bundle extras, Bundle resultData)
Called when the custom action finished successfully. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
Public constructors
MediaBrowserCompat.CustomActionCallback
MediaBrowserCompat.CustomActionCallback ()
Public methods
onError
void onError (String action, Bundle extras, Bundle data)
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
void onProgressUpdate (String action, Bundle extras, Bundle data)
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
void onResult (String action, Bundle extras, Bundle resultData)
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.
|
Classes
- AudioAttributesCompat
- AudioAttributesCompat.Builder
- MediaBrowserCompat
- MediaBrowserCompat.ConnectionCallback
- MediaBrowserCompat.CustomActionCallback
- MediaBrowserCompat.ItemCallback
- MediaBrowserCompat.MediaItem
- MediaBrowserCompat.SearchCallback
- MediaBrowserCompat.SubscriptionCallback
- MediaBrowserServiceCompat
- MediaBrowserServiceCompat.BrowserRoot
- MediaBrowserServiceCompat.Result
- MediaDescriptionCompat
- MediaDescriptionCompat.Builder
- MediaMetadataCompat
- MediaMetadataCompat.Builder
- RatingCompat
- VolumeProviderCompat
- VolumeProviderCompat.Callback