Enum Class NCCallCode

java.lang.Object
java.lang.Enum<NCCallCode>
ai.nexconn.call.api.NCCallCode
All Implemented Interfaces:
Serializable, Comparable<NCCallCode>, Constable

public enum NCCallCode extends Enum<NCCallCode>
Call business status codes.
  • Enum Constant Details

    • UNKNOWN

      public static final NCCallCode UNKNOWN
      Unknown error (status code -1).
    • SUCCESS

      public static final NCCallCode SUCCESS
      Success (status code 0).
    • PARAMETER_ERROR

      public static final NCCallCode PARAMETER_ERROR
      Invalid method argument when calling an API (status code 80001).
    • ON_CALLING

      public static final NCCallCode ON_CALLING
      The current user is already in a call and cannot start or join a new call (status code 80002).
    • NOT_IN_CALL

      public static final NCCallCode NOT_IN_CALL
      The current call has not been established. This occurs when a call-related function is invoked while the current user has no ongoing call, so the function cannot execute normally (status code 80003).
    • MEDIA_TYPE_INVALID

      public static final NCCallCode MEDIA_TYPE_INVALID
      Media type switching is not allowed for the current call (status code 80004).
    • RTC_SERVICE_UNAVAILABLE

      public static final NCCallCode RTC_SERVICE_UNAVAILABLE
      The audio/video service has not taken effect yet or has been disabled (status code 80006).
    • USER_LIST_INVALID

      public static final NCCallCode USER_LIST_INVALID
      Empty user list passed to the API (status code 80007).
    • CALL_ID_INVALID

      public static final NCCallCode CALL_ID_INVALID
      Empty call ID passed to the API (status code 80008).
    • TRANSACTION_ID_INVALID

      public static final NCCallCode TRANSACTION_ID_INVALID
      Empty transaction ID passed to the API (status code 80009). This error can be thrown by methods such as NCCallEngine.replyChangeMediaType(String, boolean) and NCCallEngine.cancelChangeMediaType(String).
    • USER_ID_INVALID

      public static final NCCallCode USER_ID_INVALID
      Empty user ID passed to the API (status code 80010).
    • SINGLE_CALL_NOT_SUPPORT_MULTI_PERSON

      public static final NCCallCode SINGLE_CALL_NOT_SUPPORT_MULTI_PERSON
      Only one user is allowed in the participant list when starting a one-to-one call (status code 80011).
    • SDK_NOT_INITIALIZED

      public static final NCCallCode SDK_NOT_INITIALIZED
      The SDK has not been initialized (status code 80200). Call NCCallEngine#initialize(INCCallInitOptions) first.
    • EXECUTION_METHOD_INTERRUPTED

      public static final NCCallCode EXECUTION_METHOD_INTERRUPTED
      After an API is called, internal requests may be retried on failure. This code indicates the method was interrupted by another API call during retry (status code 80201).
    • CALL_ABRUPT_HANGUP

      public static final NCCallCode CALL_ABRUPT_HANGUP
      When NCCallEngine.startCall(java.util.List, NCCallType, NCCallMediaType) and NCCallEngine.endCall(String) are called in quick succession, the started call is actively hung up (status code 80202).
    • INTERNAL_ERROR

      public static final NCCallCode INTERNAL_ERROR
      An internal SDK processing exception occurred. Collect detailed logs for troubleshooting when this happens (status code 80203).
    • CAMERA_SWITCH_ERROR

      public static final NCCallCode CAMERA_SWITCH_ERROR
      Failed to switch the camera (status code 80204).
  • Method Details

    • values

      public static NCCallCode[] 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 NCCallCode 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 int getValue()
      Returns the numeric status code.
    • getReason

      public String getReason()
      Returns the status code description.
    • valueOf

      public static NCCallCode valueOf(int value)
      Resolves the status code from its numeric value.
      Parameters:
      value - status code value
      Returns:
      the matching status code, or UNKNOWN for unknown values
    • toString

      public String toString()
      Overrides:
      toString in class Enum<NCCallCode>