DJI Mobile SDK Documentation

      class FormattingState

      final class FormattingState
      Package:dji.common.flightcontroller.accesslocker
      Description:

      Formatting state of the access locker.

      Class Members:
      Progress State
      method
      method getProgressState
      FormattingProgressState getProgressState()
      Package:dji.common.flightcontroller.accesslocker
      Description:

      The progress state.

      Return:
      FormattingProgressStateAn enum value of the FormattingProgressState.
      method getDJIDataLockerError
      @Nullable
      DJIError getDJIDataLockerError()
      Package:dji.common.flightcontroller.accesslocker
      Description:

      Checks if the formatting operation is successfully completed. The recent formatting operation failure if any. NULL if the recent formatting operation succeeded.

      Return:
      DJIErrorThe possible error during the formatting process.
      State Updates
      interface
      interface Callback
      interface Callback
      Package:dji.common.flightcontroller.accesslocker
      Description:

      Callback to update the FormattingState.

      Interface Methods:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(@NonNull FormattingState state)
      Package:dji.common.flightcontroller.accesslocker
      Description:

      Callback function that updates the FormattingState.

      Input Parameters:
      @NonNull FormattingState stateAn instance of FormattingState