Enum Class ContentAvailability

java.lang.Object
java.lang.Enum<ContentAvailability>
org.schabi.newpipe.extractor.stream.ContentAvailability
All Implemented Interfaces:
Serializable, Comparable<ContentAvailability>, Constable

public enum ContentAvailability extends Enum<ContentAvailability>
Availability of the stream.

A stream may be available to all, restricted to a certain user group or time.

  • Enum Constant Details

    • UNKNOWN

      public static final ContentAvailability UNKNOWN
      The availability of the stream is unknown (but clients may assume that it's available).
    • AVAILABLE

      public static final ContentAvailability AVAILABLE
      The stream is available to all users.
    • MEMBERSHIP

      public static final ContentAvailability MEMBERSHIP
      The stream is available to users with a membership.
    • UPCOMING

      public static final ContentAvailability UPCOMING
      The stream is only available in the future.
  • Method Details

    • values

      public static ContentAvailability[] 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 ContentAvailability 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