SessionCommandGroup
public
final
class
SessionCommandGroup
extends Object
implements
VersionedParcelable
| java.lang.Object | |
| ↳ | androidx.media2.SessionCommandGroup |
A set of SessionCommand which represents a command group.
Summary
Nested classes | |
|---|---|
class |
SessionCommandGroup.Builder
Builds a |
Public constructors | |
|---|---|
SessionCommandGroup()
Default Constructor. |
|
SessionCommandGroup(Collection<SessionCommand> commands)
Creates a new SessionCommandGroup with commands copied from another object. |
|
Public methods | |
|---|---|
Set<SessionCommand>
|
getCommands()
Gets all commands of this command group. |
boolean
|
hasCommand(int commandCode)
Checks whether this command group has a command that matches given |
boolean
|
hasCommand(SessionCommand command)
Checks whether this command group has a command that matches given |
Inherited methods | |
|---|---|
Public constructors
SessionCommandGroup
public SessionCommandGroup ()
Default Constructor.
SessionCommandGroup
public SessionCommandGroup (Collection<SessionCommand> commands)
Creates a new SessionCommandGroup with commands copied from another object.
| Parameters | |
|---|---|
commands |
Collection: The collection of commands to copy.
|
Public methods
getCommands
public Set<SessionCommand> getCommands ()
Gets all commands of this command group.
| Returns | |
|---|---|
Set<SessionCommand> |
|
hasCommand
public boolean hasCommand (int commandCode)
Checks whether this command group has a command that matches given commandCode.
| Parameters | |
|---|---|
commandCode |
int: A command code to find.
Shouldn't be SessionCommand.COMMAND_CODE_CUSTOM.
|
| Returns | |
|---|---|
boolean |
|
hasCommand
public boolean hasCommand (SessionCommand command)
Checks whether this command group has a command that matches given command.
| Parameters | |
|---|---|
command |
SessionCommand: A command to find. Shouldn't be null.
|
| Returns | |
|---|---|
boolean |
|
Interfaces
Classes
- CallbackMediaItem
- CallbackMediaItem.Builder
- DataSourceCallback
- FileMediaItem
- FileMediaItem.Builder
- HeartRating
- MediaBrowser
- MediaBrowser.BrowserCallback
- MediaBrowser.BrowserResult
- MediaController
- MediaController.ControllerCallback
- MediaController.ControllerResult
- MediaController.PlaybackInfo
- MediaItem
- MediaItem.Builder
- MediaLibraryService
- MediaLibraryService.LibraryParams
- MediaLibraryService.LibraryParams.Builder
- MediaLibraryService.LibraryResult
- MediaLibraryService.MediaLibrarySession
- MediaLibraryService.MediaLibrarySession.Builder
- MediaLibraryService.MediaLibrarySession.MediaLibrarySessionCallback
- MediaMetadata
- MediaMetadata.Builder
- MediaPlayer
- MediaPlayer.PlayerCallback
- MediaPlayer.TrackInfo
- MediaSession
- MediaSession.Builder
- MediaSession.CommandButton
- MediaSession.CommandButton.Builder
- MediaSession.ControllerInfo
- MediaSession.SessionCallback
- MediaSession.SessionResult
- MediaSessionManager
- MediaSessionService
- MediaSessionService.MediaNotification
- MediaTimestamp
- PercentageRating
- PlaybackParams
- PlaybackParams.Builder
- SessionCommand
- SessionCommandGroup
- SessionCommandGroup.Builder
- SessionPlayer
- SessionPlayer.PlayerCallback
- SessionPlayer.PlayerResult
- SessionToken
- StarRating
- SubtitleData
- ThumbRating
- TimedMetaData
- UriMediaItem
- UriMediaItem.Builder
- VideoSize
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.