DJI Mobile SDK Documentation

      class CompletionCallbackWithParam

      interface CompletionCallbackWithParam<T>
      Package:dji.v5.common.callback
      Description:

      The callback which carries a return message from an asynchronous operation.

      Class Members:
      method
      method onSuccess
      void onSuccess(T t)
      Package:dji.v5.common.callback
      Description:

      The callback means the asynchronous operation is done without any errors.

      Input Parameters:
      T tReturn parameter T.
      method
      method onFailure
      void onFailure(@NonNull IDJIError error)
      Package:dji.v5.common.callback
      Description:

      The callback will return and carry an "error" object when the asynchronous operation is done. If the operation is done without any errors, the "error" object isnull.

      Input Parameters:
      @NonNull IDJIError errorError code