DJI Mobile SDK Documentation

      class DJIAirLinkError

      @EXClassNullAway
      class DJIAirLinkError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Defines all AirLink related errors.

      Class Members:
      method getDJIError
      static DJIError getDJIError(Ccode ccode)
      Package:dji.common.error
      Description:

      Returns the specific error in DJIAirLinkError according to the error code.

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorThe DJIError object.
      final IMAGE_TRANSMITTER_CANNOT_SET_PARAMETERS_IN_THIS_STATE
      static final DJIAirLinkError IMAGE_TRANSMITTER_CANNOT_SET_PARAMETERS_IN_THIS_STATE = new DJIAirLinkError("Cannot set the parameters in this state")
      Package:dji.common.error
      Description:

      Cannot set the parameters in this state.

      Inherited Methods:
      dji.common.error.DJIError
      method
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Returns the specific error in the DJIFlightHubError according to the error code.

      Input Parameters:
      int errorCodeerrorCode for DJIFlightHubError.
      Return:
      static DJIErrorAn NSError object initialized with errorCode. If the errorCode was 0, returns nil.
      method getDescription
      String getDescription()
      Package:dji.common.error
      Description:

      Returns the description of the error code.

      Return:
      StringThe description of the error code.
      method setDescription
      void setDescription(String desc)
      Package:dji.common.error
      Description:

      Sets the description for the error code.

      Input Parameters:
      String descDescription string.