Package org.dwcj.addons.youtube
Enum Class Youtube.ListType
- All Implemented Interfaces:
Serializable,Comparable<Youtube.ListType>,Constable
- Enclosing class:
Youtube
The type of the content that will load in the player.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies a YouTube playlist ID.The list parameter value identifies the YouTube channel whose uploaded videos will be loaded. -
Method Summary
Modifier and TypeMethodDescriptionstatic Youtube.ListTypeGet the enum from the value.getValue()Get the value of the enum.toString()static Youtube.ListTypeReturns the enum constant of this class with the specified name.static Youtube.ListType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_UPLOADS
The list parameter value identifies the YouTube channel whose uploaded videos will be loaded. -
PLAYLIST
Specifies a YouTube playlist ID. In the parameter value, you need to prepend the playlist ID with the letters PL as shown in the example below.player.setListType(ListType.PLAYLIST); player.setList("PLC77007E23FF423C6");
-
-
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
-
getValue
Get the value of the enum.- Returns:
- the value of the enum
-
fromValue
Get the enum from the value.- Parameters:
value- the value of the enum- Returns:
- the enum
-
toString
- Overrides:
toStringin classEnum<Youtube.ListType>
-