Enum Class Youtube.ListType

java.lang.Object
java.lang.Enum<Youtube.ListType>
org.dwcj.addons.youtube.Youtube.ListType
All Implemented Interfaces:
Serializable, Comparable<Youtube.ListType>, Constable
Enclosing class:
Youtube

public static enum Youtube.ListType extends Enum<Youtube.ListType>
The type of the content that will load in the player.
  • Enum Constant Details

    • USER_UPLOADS

      public static final Youtube.ListType USER_UPLOADS
      The list parameter value identifies the YouTube channel whose uploaded videos will be loaded.
    • PLAYLIST

      public static final Youtube.ListType 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

      public static Youtube.ListType[] 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

      public static Youtube.ListType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Get the value of the enum.
      Returns:
      the value of the enum
    • fromValue

      public static Youtube.ListType fromValue(String value)
      Get the enum from the value.
      Parameters:
      value - the value of the enum
      Returns:
      the enum
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Youtube.ListType>