public static interface MediaSessionConnector.CustomActionProvider
PlaybackStateCompat.CustomAction to be published and handles the action when
sent by a media controller.| Modifier and Type | Method and Description |
|---|---|
android.support.v4.media.session.PlaybackStateCompat.CustomAction |
getCustomAction()
Returns a
PlaybackStateCompat.CustomAction which will be published to the media
session by the connector or null if this action should not be published at the given
player state. |
void |
onCustomAction(java.lang.String action,
android.os.Bundle extras)
Called when a custom action provided by this provider is sent to the media session.
|
void onCustomAction(java.lang.String action,
android.os.Bundle extras)
action - The name of the action which was sent by a media controller.extras - Optional extras sent by a media controller.android.support.v4.media.session.PlaybackStateCompat.CustomAction getCustomAction()
PlaybackStateCompat.CustomAction which will be published to the media
session by the connector or null if this action should not be published at the given
player state.null.