public enum AdPreloadType extends Enum<AdPreloadType>
Enum Constant and Description |
---|
MIDROLL_AND_POSTROLL
Preloads midrolls and postrolls.
|
NONE
No preloading of the advertisement.
|
Modifier and Type | Method and Description |
---|---|
static AdPreloadType |
from(String adPreloadType)
Converts a textual representation of the preload type to an actual
AdPreloadType instance. |
static AdPreloadType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdPreloadType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdPreloadType NONE
public static final AdPreloadType MIDROLL_AND_POSTROLL
- For Google IMA the preload starts 4 seconds before ad playback.
public static AdPreloadType[] values()
for (AdPreloadType c : AdPreloadType.values()) System.out.println(c);
public static AdPreloadType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AdPreloadType from(String adPreloadType)
AdPreloadType
instance.adPreloadType
- The textual representation of the preload type.
- For possible values, see AdPreloadType
.