Package com.google.android.exoplayer2
Class SimpleBasePlayer.State
- java.lang.Object
-
- com.google.android.exoplayer2.SimpleBasePlayer.State
-
- Enclosing class:
- SimpleBasePlayer
protected static final class SimpleBasePlayer.State extends Object
An immutable state description of the player.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSimpleBasePlayer.State.BuilderA builder forSimpleBasePlayer.Stateobjects.
-
Field Summary
Fields Modifier and Type Field Description Player.CommandsavailableCommandsThe availablePlayer.Commands.booleanplayWhenReadyWhether playback should proceed when ready and not suppressed.@com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason intplayWhenReadyChangeReasonThe last reason for changingplayWhenReady.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleBasePlayer.State.BuilderbuildUpon()Returns aSimpleBasePlayer.State.Builderpre-populated with the current state values.booleanequals(Object o)inthashCode()
-
-
-
Field Detail
-
availableCommands
public final Player.Commands availableCommands
The availablePlayer.Commands.
-
playWhenReady
public final boolean playWhenReady
Whether playback should proceed when ready and not suppressed.
-
playWhenReadyChangeReason
@PlayWhenReadyChangeReason public final @com.google.android.exoplayer2.Player.PlayWhenReadyChangeReason int playWhenReadyChangeReason
The last reason for changingplayWhenReady.
-
-
Method Detail
-
buildUpon
public SimpleBasePlayer.State.Builder buildUpon()
Returns aSimpleBasePlayer.State.Builderpre-populated with the current state values.
-
-