Enum Class AdAsset.AdType

java.lang.Object
java.lang.Enum<AdAsset.AdType>
com.brightcove.player.ads.AdAsset.AdType
All Implemented Interfaces:
Serializable, Comparable<AdAsset.AdType>, Constable
Enclosing class:
AdAsset

public static enum AdAsset.AdType extends Enum<AdAsset.AdType>
The ad types
  • Enum Constant Details

    • UNKNOWN

      public static final AdAsset.AdType UNKNOWN
      Used when none other option is matched.
    • PREROLL

      public static final AdAsset.AdType PREROLL
      Represents an ad to be played before the content.
    • MIDROLL

      public static final AdAsset.AdType MIDROLL
      Represents an ad to be played during the content by interrupting it.
    • POSTROLL

      public static final AdAsset.AdType POSTROLL
      Represents an ad to be played after the content.
  • Method Details

    • values

      public static AdAsset.AdType[] 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 AdAsset.AdType 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