DJI Mobile SDK Documentation

      class StorageState

      @EXClassNullAway
      class StorageState
      Package:dji.common.camera
      Description:

      This class provides the general information and state of the storage (SD card or the internal storage).

      Class Members:
      Callback
      class
      Operating State
      method
      method isInserted
      boolean isInserted()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_INSERTED
      Description:

      true if the SD card is inserted in the camera. It is always true when it is the internal storage.

      Return:
      booleanA boolean value.
      method isInitializing
      boolean isInitializing()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_INITIALIZING
      Description:

      true if the storage is initializing. Note that if the storage is initializing, the value for other properties in StorageState is undefined.

      Return:
      booleanA boolean value.
      method isReadOnly
      boolean isReadOnly()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_READ_ONLY
      Description:

      true if the storage is read-only.

      Return:
      booleanA boolean value.
      method isFormatted
      boolean isFormatted()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_FORMATTED
      Description:

      true if the storage is formatted.

      Return:
      booleanA boolean value.
      method isFormatting
      boolean isFormatting()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_FORMATTING
      Description:

      true if the storage is formatting.

      Return:
      booleanA boolean value.
      method
      method isFull
      boolean isFull()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_FULL
      Description:

      true if the storage cannot save any more media.

      Return:
      booleanA boolean value.
      method isVerified
      boolean isVerified()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_VERIFIED
      Description:

      true if the SD card is verified as genuine. The SD card is not valid if it is fake, which can be a problem if the SD card was purchased by a non-reputable retailer. It is always true when it is the internal storage.

      Return:
      booleanA boolean value.
      method isInvalidFormat
      boolean isInvalidFormat()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_IS_INVALID_FORMAT
      Description:

      true if the storage filesystem format is invalid.

      Return:
      booleanA boolean value.
      method
      method hasError
      boolean hasError()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_HAS_ERROR
      Description:

      true if there is an error with the storage.

      Return:
      booleanA boolean value.
      Storage Location
      method
      method getStorageLocation
      SettingsDefinitions.StorageLocation getStorageLocation()
      Package:dji.common.camera
      Description:

      The location of the storage.

      Return:
      SettingsDefinitions.StorageLocationA enum value of StorageLocation.
      Capacity
      method
      method getTotalSpaceInMB
      int getTotalSpaceInMB()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_TOTAL_SPACE_IN_MB
      Description:

      Total space in Megabytes (MB) available on the storage.

      Return:
      intA boolean value.
      method getRemainingSpaceInMB
      int getRemainingSpaceInMB()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_REMAINING_SPACE_IN_MB
      Description:

      Remaining space in Megabytes (MB) on the storage.

      Return:
      intAn int value.
      method getAvailableCaptureCount
      long getAvailableCaptureCount()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_AVAILABLE_CAPTURE_COUNT
      Description:

      Returns the number of pictures that can be taken with the remaining space available on the storage.

      Return:
      longA long value.
      method getAvailableRecordingTimeInSeconds
      int getAvailableRecordingTimeInSeconds()
      Package:dji.common.camera
      SDK Key:CameraKey.SDCARD_AVAILABLE_RECORDING_TIME_IN_SECONDS
      Description:

      Returns the number of seconds available for recording with the remaining space available on the storage.

      Return:
      intAn int value.