Enum IceCandidateTransportType
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum IceCandidateTransportType extends Enum<IceCandidateTransportType>
The enumeration categorizes the possible transport types of the ICE candidates used when creating the peer connection. By using value different then IceCandidateTransportType.ALL it is possible to filter some of the generated ICE candidates out.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RELAYAllows to use only ICE candidates that are using a relay server (such as a TURN server) to route the traffic.
NOHOSTFilters all the
HOSTICE candidates out. This can be used to improve privacy as no local IP addresses of device (i.e. the ones that are not accessible by STUN server or other peer) are exposed.ALLAllows to use every generated ICE candidate. This is the default value.
-
Method Summary
Modifier and Type Method Description final IceCandidateTransportTypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<IceCandidateTransportType>values()Returns an array containing the constants of this enum type, in the order they're declared. -
-
Method Detail
-
valueOf
final IceCandidateTransportType valueOf(String value)
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.)
-
values
final Array<IceCandidateTransportType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
-
-
-