Enum RequestSettings.InsertionPointType

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ON_BEFORE_CONTENT
      Request ads to be played before the content, or 'preroll' ads.
      ON_CONTENT_END
      Request ads to be played after the content, or 'postroll' ads.
      ON_PAUSE
      Request ads to be played when the content is paused.
      PLAYBACK_POSITION
      Request midroll ads and/or overlay ads, to be played at the positions specified in linearPlaybackPositions and nonlinearPlaybackPositions respectively.
      PLAYBACK_TIME
      Request overlay ads to be displayed; based on the content duration, which must be specified as well.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RequestSettings.InsertionPointType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static RequestSettings.InsertionPointType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • PLAYBACK_POSITION

        public static final RequestSettings.InsertionPointType PLAYBACK_POSITION
        Request midroll ads and/or overlay ads, to be played at the positions specified in linearPlaybackPositions and nonlinearPlaybackPositions respectively.
      • PLAYBACK_TIME

        public static final RequestSettings.InsertionPointType PLAYBACK_TIME
        Request overlay ads to be displayed; based on the content duration, which must be specified as well.
    • Method Detail

      • values

        public static RequestSettings.InsertionPointType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RequestSettings.InsertionPointType c : RequestSettings.InsertionPointType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RequestSettings.InsertionPointType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null