Package com.ooyala.pulse
Enum RequestSettings.UserAgentFormat
- java.lang.Object
-
- java.lang.Enum<RequestSettings.UserAgentFormat>
-
- com.ooyala.pulse.RequestSettings.UserAgentFormat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestSettings.UserAgentFormat>
- Enclosing class:
- RequestSettings
public static enum RequestSettings.UserAgentFormat extends java.lang.Enum<RequestSettings.UserAgentFormat>
User Agent format for third party ad and tracking requests, you can set usingRequestSettings.setUserAgentForThirdPartyRequests(UserAgentFormat)
. Make sure to set the application nameRequestSettings.setApplicationName(String)
and application versionRequestSettings.setApplicationVersion(String)
also when passing UserAgentType as IAB or GOOGLE. These are required to build user agent. If not set, SDK will use "Invidi Pulse"/"SDK version" in place of "application name"/"application version".
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestSettings.UserAgentFormat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestSettings.UserAgentFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IAB
public static final RequestSettings.UserAgentFormat IAB
IAB Format - "device info" "os name"/"os version" "app name"/"app version" "other info"
-
GOOGLE
public static final RequestSettings.UserAgentFormat GOOGLE
Google Format - name version (os_and_version; locale; device; build; Proxy)
-
DEFAULT
public static final RequestSettings.UserAgentFormat DEFAULT
DEFAULT Format
-
-
Method Detail
-
values
public static RequestSettings.UserAgentFormat[] 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.UserAgentFormat c : RequestSettings.UserAgentFormat.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.UserAgentFormat 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 namejava.lang.NullPointerException
- if the argument is null
-
-