DJI Mobile SDK Documentation

      class ActionCallback

      interface ActionCallback
      Package:dji.keysdk.callback
      Description:

      Callback called when performing an action on a key.

      Class Members:
      method
      method onSuccess
      void onSuccess()
      Package:dji.keysdk.callback
      Description:

      Invoked when the action is done successfully.

      method
      method onFailure
      void onFailure(@NonNull DJIError error)
      Package:dji.keysdk.callback
      Description:

      Invoked when the action has failed.

      Input Parameters:
      @NonNull DJIError errorThe error that occurred.