Package com.google.android.exoplayer2
Class SimpleBasePlayer.State.Builder
- java.lang.Object
-
- com.google.android.exoplayer2.SimpleBasePlayer.State.Builder
-
- Enclosing class:
- SimpleBasePlayer.State
public static final class SimpleBasePlayer.State.Builder extends Object
A builder forSimpleBasePlayer.State
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates the builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBasePlayer.State
build()
Builds theSimpleBasePlayer.State
.SimpleBasePlayer.State.Builder
setAvailableCommands(Player.Commands availableCommands)
Sets the availablePlayer.Commands
.SimpleBasePlayer.State.Builder
setPlayWhenReady(boolean playWhenReady, @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int playWhenReadyChangeReason)
Sets whether playback should proceed when ready and not suppressed.
-
-
-
Method Detail
-
setAvailableCommands
@CanIgnoreReturnValue public SimpleBasePlayer.State.Builder setAvailableCommands(Player.Commands availableCommands)
Sets the availablePlayer.Commands
.- Parameters:
availableCommands
- The availablePlayer.Commands
.- Returns:
- This builder.
-
setPlayWhenReady
@CanIgnoreReturnValue public SimpleBasePlayer.State.Builder setPlayWhenReady(boolean playWhenReady, @PlayWhenReadyChangeReason @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int playWhenReadyChangeReason)
Sets whether playback should proceed when ready and not suppressed.- Parameters:
playWhenReady
- Whether playback should proceed when ready and not suppressed.playWhenReadyChangeReason
- The reason for changing the value.- Returns:
- This builder.
-
build
public SimpleBasePlayer.State build()
Builds theSimpleBasePlayer.State
.
-
-