SessionCommandGroup.Builder

public static final class SessionCommandGroup.Builder
extends Object

java.lang.Object
   ↳ androidx.media2.session.SessionCommandGroup.Builder


Builds a SessionCommandGroup object.

Summary

Public constructors

Builder()
Builder(SessionCommandGroup commandGroup)

Creates a new builder for SessionCommandGroup with commands copied from another SessionCommandGroup object.

Public methods

SessionCommandGroup.Builder addAllPredefinedCommands(int version)

Adds all predefined session commands except for the commands added after the specified version without default implementation.

SessionCommandGroup.Builder addCommand(SessionCommand command)

Adds a command to this command group.

SessionCommandGroup build()

Builds a SessionCommandGroup.

SessionCommandGroup.Builder removeCommand(SessionCommand command)

Removes a command from this group which matches given command.

Inherited methods

Public constructors

Builder

public Builder ()

Builder

public Builder (