Package io.agora.rtc2

Enum Class RtcConnection.CONNECTION_STATE_TYPE

java.lang.Object
java.lang.Enum<RtcConnection.CONNECTION_STATE_TYPE>
io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE
All Implemented Interfaces:
Serializable, Comparable<RtcConnection.CONNECTION_STATE_TYPE>, Constable
Enclosing class:
RtcConnection

public static enum RtcConnection.CONNECTION_STATE_TYPE extends Enum<RtcConnection.CONNECTION_STATE_TYPE>
Connection state types.
  • Enum Constant Details

    • CONNECTION_STATE_NOT_INITIALIZED

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_NOT_INITIALIZED
      0: The SDK has not been initialized.
    • CONNECTION_STATE_DISCONNECTED

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_DISCONNECTED
      1: The SDK is disconnected from Agora's edge server.
    • CONNECTION_STATE_CONNECTING

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_CONNECTING
      2: The SDK is connecting to Agora's edge server.
    • CONNECTION_STATE_CONNECTED

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_CONNECTED
      3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel.
    • CONNECTION_STATE_RECONNECTING

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_RECONNECTING
      4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
    • CONNECTION_STATE_FAILED

      public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_FAILED
      5: The SDK fails to connect to Agora's edge server or join the channel.
  • Method Details

    • values

      public static RtcConnection.CONNECTION_STATE_TYPE[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RtcConnection.CONNECTION_STATE_TYPE valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public static int getValue(RtcConnection.CONNECTION_STATE_TYPE type)