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 |
---|---|
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(String action,
Bundle extras)
Called when a custom action provided by this provider is sent to the media session.
|
void onCustomAction(String action, Bundle extras)
action
- The name of the action which was sent by a media controller.extras
- Optional extras sent by a media controller.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
.