DJI Mobile SDK Documentation

      class Y>

      interface CompletionCallbackWithTwoParam<X, Y>
      Package:dji.common.util
      Description:

      Completion callback for asynchronous operations when information that requires two parameters (X, Y) needs to be returned from the operation. The parameters X and Y will be defined where the operation is called.

      Class Members:

      Callback Interfaces

      method
      method onSuccess
      void onSuccess(X x, Y y)
      Package:dji.common.util
      Description:

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

      Input Parameters:
      X xThe first parameter being returned.
      Y yThe second 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