sinch-rtc

# IceCandidateTransportType

enum IceCandidateTransportType : 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.

## Entries

RELAY
Link copied to clipboard
RELAY

Allows to use only ICE candidates that are using a relay server (such as a TURN server) to route the traffic.

NOHOST
Link copied to clipboard
NOHOST

Filters all the `HOST` ICE 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.

ALL
Link copied to clipboard
ALL

Allows to use every generated ICE candidate. This is the default value.

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): IceCandidateTransportType

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
Link copied to clipboard
fun values(): Array<IceCandidateTransportType>

Returns an array containing the constants of this enum type, in the order they're declared.

## Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int