java.lang.Object | |
↳ | dji.common.camera.CameraSDCardState |
This class provides the SD card's general information and current status.
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()
true if 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
|
Constructor for camera SD card state.
Returns the number of pictures that can be taken with the remaining space available on the SD card.
Returns the number of seconds available for recording with the remaining space available in the SD card.
Remaining space in Megabytes(MB) on the SD card.
Total space in Megabytes(MB) available on the SD card.
true
if there is an SD card error.
true
if the SD card is formatted.
true
if the SD card is formatting.
true
if the SD card cannot save any more media.
Determines whether the SD card is initializing. Note that if the SD card is initializing, other properties of SD card state are incorrect.
true
if the SD card is initializing.
true
if the SD card is inserted into the camera.
true
if the SD card file system format is invalid.
true
if the SD card is read only.
true
if the SD card is initializing.
Note that if the SD card is initializing,
the values for other properties in CameraSDCardState are undefined.