SessionCommandGroup

Added in 1.0.0
Deprecated in 1.3.0

class SessionCommandGroup : VersionedParcelable


A set of SessionCommand which represents a command group.

Summary

Nested types

This class is deprecated.

androidx.media2 is deprecated.

Public constructors

Default Constructor.

Creates a new SessionCommandGroup with commands copied from another object.

Public functions

Boolean
equals(obj: Any!)
(Mutable)Set<SessionCommand!>

Gets all commands of this command group.

Boolean
hasCommand(commandCode: Int)

Checks whether this command group has a command that matches given commandCode.

Boolean

Checks whether this command group has a command that matches given command.

Int

Public constructors

SessionCommandGroup

Added in 1.0.0
Deprecated in 1.3.0
SessionCommandGroup()

Default Constructor.

SessionCommandGroup

Added in 1.0.0
Deprecated in 1.3.0
SessionCommandGroup(commands: (Mutable)Collection<SessionCommand!>?)

Creates a new SessionCommandGroup with commands copied from another object.

Parameters
commands: (Mutable)Collection<SessionCommand!>?

The collection of commands to copy.

Public functions

equals

fun equals(obj: Any!): Boolean

getCommands

Added in 1.0.0
Deprecated in 1.3.0
fun getCommands(): (Mutable)Set<SessionCommand!>

Gets all commands of this command group.

hasCommand

Added in 1.0.0
Deprecated in 1.3.0
fun hasCommand(commandCode: Int): Boolean

Checks whether this command group has a command that matches given commandCode.

Parameters
commandCode: Int

A command code to find. Shouldn't be COMMAND_CODE_CUSTOM.

hasCommand

Added in 1.0.0
Deprecated in 1.3.0
fun hasCommand(command: SessionCommand): Boolean

Checks whether this command group has a command that matches given command.

Parameters
command: SessionCommand

A command to find. Shouldn't be null.

hashCode

fun hashCode(): Int