DJI Mobile SDK Documentation

      class CompletionCallbackWith

      interface CompletionCallbackWith<T>
      Package:dji.common.util
      Description:

      Completion callback for asynchronous operations when information that requires one parameter (T) needs to be returned from the operation. The parameter T will be defined where the operation called.

      Class Members:

      Callback Interfaces

      method
      method onSuccess
      void onSuccess(T t)
      Package:dji.common.util
      Description:

      Invoked when the asynchronous operation completes successfully. Override to handle in your own code.

      Input Parameters:
      T tThe parameter being returned.
      method
      method onFailure
      void onFailure(DJIError error)
      Package:dji.common.util
      Description:

      Invoked when the asynchronous operation fails to complete normally. Override to handle in your own code.

      Input Parameters:
      DJIError errorThe DJI error result