Package com.jwplayer.pub.api
Enum Class PauseReason
- All Implemented Interfaces:
Serializable
,Comparable<PauseReason>
,Constable
Constants indicating the reason the player is in the pause state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer is paused when playback cannot start automatically because the player is not visible.Player is paused due to a clickthrough.Player is paused due to external api call.Player is paused due to user interaction.Player is paused due to user interaction with the related menu.Player is paused due to user interaction with the settings menu.Unknown reason.Playback paused due to the player being less than 50% visible. -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsName
(String otherName) toString()
static PauseReason
Returns the enum constant of this class with the specified name.static PauseReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTERNAL
Player is paused due to external api call. -
INTERACTION
Player is paused due to user interaction. -
CLICK_THROUGH
Player is paused due to a clickthrough. -
VIEWABLE
Playback paused due to the player being less than 50% visible. -
SETTINGS_INTERACTION
Player is paused due to user interaction with the settings menu. -
RELATED_INTERACTION
Player is paused due to user interaction with the related menu. -
AUTO_START
Player is paused when playback cannot start automatically because the player is not visible. -
UNKNOWN
Unknown reason.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
equalsName
-
toString
- Overrides:
toString
in classEnum<PauseReason>
-