public class

CameraSDCardState

extends Object
java.lang.Object
   ↳ dji.common.camera.CameraSDCardState

Class Overview

This class provides the SD card's general information and current status.

Summary

Public Constructors
CameraSDCardState()
Constructor for camera SD card state.
Public Methods
long getAvailableCaptureCount()
Returns the number of pictures that can be taken with the remaining space available on the SD card.
int getAvailableRecordingTime()
Returns the number of seconds available for recording with the remaining space available in the SD card.
int getRemainingSpaceInMegaBytes()
Remaining space in Megabytes(MB) on the SD card.
int getTotalSpaceInMegaBytes()
Total space in Megabytes(MB) available on the SD card.
boolean hasError()
true if there is an SD card error.
boolean isFormatted()
true if the SD card is formatted.
boolean isFormatting()
true if the SD card is formatting.
boolean isFull()
trueif the SD card cannot save any more media.
boolean isInitializing()
Determines whether the SD card is initializing.
boolean isInserted()
true if the SD card is inserted into the camera.
boolean isInvalidFormat()
true if the SD card file system format is invalid.
boolean isReadOnly()
true if the SD card is read only.
boolean isVerified()
true if the SD card is initializing.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CameraSDCardState ()

Constructor for camera SD card state.

Public Methods

public long getAvailableCaptureCount ()

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

public int getAvailableRecordingTime ()

Returns the number of seconds available for recording with the remaining space available in the SD card.

public int getRemainingSpaceInMegaBytes ()

Remaining space in Megabytes(MB) on the SD card.

public int getTotalSpaceInMegaBytes ()

Total space in Megabytes(MB) available on the SD card.

public boolean hasError ()

true if there is an SD card error.

public boolean isFormatted ()

true if the SD card is formatted.

public boolean isFormatting ()

true if the SD card is formatting.

public boolean isFull ()

trueif the SD card cannot save any more media.

public boolean isInitializing ()

Determines whether the SD card is initializing. Note that if the SD card is initializing, other properties of SD card state are incorrect.

Returns
  • true if the SD card is initializing.

public boolean isInserted ()

true if the SD card is inserted into the camera.

public boolean isInvalidFormat ()

true if the SD card file system format is invalid.

public boolean isReadOnly ()

true if the SD card is read only.

public boolean isVerified ()

true if the SD card is initializing. Note that if the SD card is initializing, the values for other properties in CameraSDCardState are undefined.