Builder
class Builder
kotlin.Any | |
↳ | android.media.Session2CommandGroup.Builder |
This API is not generally intended for third party application developers. Use the AndroidX Media2 session Library for consistent behavior across all devices.
Builds a Session2CommandGroup
object.
Summary
Public constructors | |
---|---|
Builder() |
|
Builder(commandGroup: Session2CommandGroup) Creates a new builder for |
Public methods | |
---|---|
Session2CommandGroup.Builder |
addCommand(command: Session2Command) Adds a command to this command group. |
Session2CommandGroup |
build() Builds |
Session2CommandGroup.Builder |
removeCommand(command: Session2Command) Removes a command from this group which matches given |
Public constructors
Builder
Builder(commandGroup: Session2CommandGroup)
Creates a new builder for Session2CommandGroup
with commands copied from another Session2CommandGroup
object.
Parameters | |
---|---|
commandGroup |
Session2CommandGroup: This value cannot be null . |
Public methods
addCommand
fun addCommand(command: Session2Command): Session2CommandGroup.Builder
Adds a command to this command group.
Parameters | |
---|---|
command |
Session2Command: A command to add. Shouldn't be null . |
Return | |
---|---|
Session2CommandGroup.Builder |
This value cannot be null . |
build
fun build(): Session2CommandGroup
Builds Session2CommandGroup
.
Return | |
---|---|
Session2CommandGroup |
a new Session2CommandGroup . This value cannot be null . |
removeCommand
fun removeCommand(command: Session2Command): Session2CommandGroup.Builder
Removes a command from this group which matches given command
.
Parameters | |
---|---|
command |
Session2Command: A command to find. Shouldn't be null . |
Return | |
---|---|
Session2CommandGroup.Builder |
This value cannot be null . |