CandidateType

public enum CandidateType

Carrier Stream’s candidate type.

Enum Constants

Host

public static final CandidateType Host

Host candidate.

PeerReflexive

public static final CandidateType PeerReflexive

Peer reflexive, only valid to ICE transport.

Relayed

public static final CandidateType Relayed

Relayed Candidate, only valid to ICE tranport.

ServerReflexive

public static final CandidateType ServerReflexive

Server reflexive, only valid to ICE transport.

Methods

format

public static String format(CandidateType type)

Get the fully formatized string of candidate type.

Parameters
  • type – The candidate type instance.

Returns

The formatized string of candidate type.

toString

public String toString()

Get fully formatized string.

Returns

The fully formatized string.

value

public int value()

Get candidate type.

Returns

The candidate value.

valueOf

public static CandidateType valueOf(int type)

Get candidate type

Parameters
  • type – The value of candidate type.

Throws
Returns

The close reason instance.