Enum UserParameters.ConnectionType
- java.lang.Object
-
- java.lang.Enum<UserParameters.ConnectionType>
-
- org.prebid.mobile.rendering.networking.parameters.UserParameters.ConnectionType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UserParameters.ConnectionType>
- Enclosing class:
- UserParameters
public static enum UserParameters.ConnectionType extends java.lang.Enum<UserParameters.ConnectionType>
Device connection type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserParameters.ConnectionTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static UserParameters.ConnectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFFLINE
public static final UserParameters.ConnectionType OFFLINE
Device is off-line.
-
WIFI
public static final UserParameters.ConnectionType WIFI
Device connected via WiFi.
-
CELL
public static final UserParameters.ConnectionType CELL
Device connected via mobile technology, such as 3G, GPRS, CDMA etc.
-
-
Method Detail
-
values
public static UserParameters.ConnectionType[] 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 (UserParameters.ConnectionType c : UserParameters.ConnectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserParameters.ConnectionType 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
-
-