DJI Mobile SDK Documentation

      class DJICameraStorageState

      @interface DJICameraStorageState : NSObject
      Header:DJICameraStorageState.h
      Inherits From:NSObject
      Description:

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

      Class Members:
      Operating State
      property
      property isInserted
      @property(nonatomic, readonly) BOOL isInserted
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsInserted
      Description:

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

      property isInitializing
      @property(nonatomic, readonly) BOOL isInitializing
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsInitializing
      Description:

      YES if the storage is initializing. Note that if the storage is initializing, the value for other properties in DJICameraStorageState is undefined.

      property
      property isReadOnly
      @property(nonatomic, readonly) BOOL isReadOnly
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsReadOnly
      Description:

      YES if the storage is read-only.

      property
      property isFormatted
      @property(nonatomic, readonly) BOOL isFormatted
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsFormatted
      Description:

      YES if the storage is formatted.

      property
      property isFormatting
      @property(nonatomic, readonly) BOOL isFormatting
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsFormatting
      Description:

      YES if the storage is formatting.

      property
      property isFull
      @property(nonatomic, readonly) BOOL isFull
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsFull
      Description:

      YES if the storage cannot save any more media.

      property
      property isVerified
      @property(nonatomic, readonly) BOOL isVerified
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsVerified
      Description:

      YES 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 YES when it is the internal storage.

      property isInvalidFormat
      @property(nonatomic, readonly) BOOL isInvalidFormat
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardIsFormatInvalid
      Description:

      YES if the storage filesystem format is invalid.

      property
      property hasError
      @property(nonatomic, readonly) BOOL hasError
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardHasError
      Description:

      YES if there is an error with the storage.

      Storage Location
      property
      property location
      @property(nonatomic, readonly) DJICameraStorageLocation location
      Header:DJICameraStorageState.h
      Description:

      The location of the storage.

      See Also:

      DJICameraStorageLocation

      Capacity
      property
      property totalSpaceInMB
      @property(nonatomic, readonly) NSUInteger totalSpaceInMB
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardTotalSpaceInMB
      Description:

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

      property remainingSpaceInMB
      @property(nonatomic, readonly) NSUInteger remainingSpaceInMB
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardRemainingSpaceInMB
      Description:

      Remaining space in Megabytes (MB) on the storage.

      property availableCaptureCount
      @property(nonatomic, readonly) NSUInteger availableCaptureCount
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardAvailablePhotoCount
      Description:

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

      property availableRecordingTimeInSeconds
      @property(nonatomic, readonly) NSUInteger availableRecordingTimeInSeconds
      Header:DJICameraStorageState.h
      SDK Key:DJICameraKey.DJICameraParamSDCardAvailableRecordingTimeInSeconds
      Description:

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