Interface MediaSessionConnector.CommandReceiver
-
- All Known Subinterfaces:
MediaSessionConnector.CaptionCallback
,MediaSessionConnector.PlaybackPreparer
,MediaSessionConnector.QueueEditor
,MediaSessionConnector.QueueNavigator
,MediaSessionConnector.RatingCallback
- All Known Implementing Classes:
TimelineQueueEditor
,TimelineQueueNavigator
- Enclosing class:
- MediaSessionConnector
public static interface MediaSessionConnector.CommandReceiver
Receiver of media commands sent by a media controller.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onCommand(Player player, String command, Bundle extras, ResultReceiver cb)
SeeMediaSessionCompat.Callback.onCommand(String, Bundle, ResultReceiver)
.
-
-
-
Method Detail
-
onCommand
boolean onCommand(Player player, String command, @Nullable Bundle extras, @Nullable ResultReceiver cb)
SeeMediaSessionCompat.Callback.onCommand(String, Bundle, ResultReceiver)
. The receiver may handle the command, but is not required to do so.- Parameters:
player
- The player connected to the media session.command
- The command name.extras
- Optional parameters for the command, may be null.cb
- A result receiver to which a result may be sent by the command, may be null.- Returns:
- Whether the receiver handled the command.
-
-