DJI Windows SDK Documentation

class CameraHandler

sealed class CameraHandler
Declaration:DJI.WindowsSDK.Components
Description:

Handler.

Class Members:
struct CameraFocusModeMsg
struct CameraFocusModeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the camera's focus mode enum value.

Struct Members:
CameraFocusMode valueThe actual value of the class.
struct CameraSDCardStateMsg
struct CameraSDCardStateMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the SD card state of cameras.

Struct Members:
CameraSDCardState valueThe actual value of the class.
struct CameraExposureModeMsg
struct CameraExposureModeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the exposure mode of cameras.

Struct Members:
CameraExposureMode valueThe actual value of the class.
struct CameraTypeMsg
struct CameraTypeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the camera type of cameras.

Struct Members:
CameraType valueThe actual value of the class.
struct VideoFileCompressionStandardMsg
struct VideoFileCompressionStandardMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the compression standard of cameras.

Struct Members:
VideoFileCompressionStandard valueThe actual value of the class.
struct CameraColorRangeMsg
struct CameraColorRangeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the color range of cameras.

struct VideoResolutionAndFrameRate
struct VideoResolutionAndFrameRate
Declaration:DJI.WindowsSDK
Description:

The resolution and the frame rate of videos

Struct Members:
VideoResolution resolutionThe resolution.
VideoFrameRate frameRateThe frame rate.
struct CameraColorMsg
struct CameraColorMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the color of cameras.

Struct Members:
CameraColor valueThe actual value of the class.
struct CameraExposureCompensationMsg
struct CameraExposureCompensationMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the exposure compensation value of cameras.

Struct Members:
CameraExposureCompensation valueThe actual value of the class.
struct CameraAntiFlickerMsg
struct CameraAntiFlickerMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the anti-flicker mode of cameras.

Struct Members:
CameraAntiFlicker valueThe actual value of the class.
struct PhotoRatioMsg
struct PhotoRatioMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains the ratio of photos.

Struct Members:
PhotoRatio valueThe actual value of the class.
struct GeneratedMediaFileInfo
struct GeneratedMediaFileInfo
Declaration:DJI.WindowsSDK
Description:

The information of the newly generated media file.

Struct Members:
MediaFileType typeThe file format.
int indexThe file index.
int fileSizeThe file size in bytes.
int timeCreatedThe created time of the file.
struct CameraShootPhotoModeMsg
struct CameraShootPhotoModeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains a shoot mode value of cameras.

Struct Members:
CameraShootPhotoMode valueThe actual value of the class.
struct CameraISOMsg
struct CameraISOMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains an ISO value of cameras.

Struct Members:
CameraISO valueThe actual value of the class.
struct CameraWorkModeMsg
struct CameraWorkModeMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains a work mode of cameras.

Struct Members:
CameraWorkMode valueThe actual value of the class.
struct CameraShutterSpeedMsg
struct CameraShutterSpeedMsg
Declaration:DJI.WindowsSDK
Description:

A class that contains a shutter speed value of cameras.

Struct Members:
CameraShutterSpeed valueThe actual value of the class.
struct CameraActualFocusArea
struct CameraActualFocusArea
Declaration:DJI.WindowsSDK
Description:

The actual area for the camera to focus.

Struct Members:
int topLeftXThe x index of the area's top left corner.
int topLeftYThe y index of the area's top left corner.
int widthThe area's width.
int heightThe area's height.
struct CameraMeteringModeMsg
struct CameraMeteringModeMsg
Declaration:DJI.WindowsSDK
Description:

A class contains a metering mode value of cameras.

Struct Members:
CameraMeteringMode valueThe actual value of the class.
struct PhotoStorageFormatMsg
struct PhotoStorageFormatMsg
Declaration:DJI.WindowsSDK
Description:

A class contains a storage format of photos.

Struct Members:
PhotoStorageFormat valueThe actual value of the class.
struct CameraFocusStateMsg
struct CameraFocusStateMsg
Declaration:DJI.WindowsSDK
Description:

A class contains a focus state of cameras.

Struct Members:
CameraFocusState valueThe actual value of the class.
struct CameraWhiteBalance
struct CameraWhiteBalance
Declaration:DJI.WindowsSDK
Description:

A class contains current values for some camera parameters related to white balance.

Struct Members:
CameraWhiteBalanceMode modeThe preset white balance mode.
int colorTemperatureThe color temperature. It is only valid when CameraWhiteBalanceMode mode is MANUAL.
struct PhotoIntervalShootSettings
struct PhotoIntervalShootSettings
Declaration:DJI.WindowsSDK
Description:

Sets the number of pictures, and sets the time interval between pictures for the Interval shoot photo mode.

Struct Members:
int countThe number of photos to capture. The value range is [2, 255]. If 255 is selected, then the camera will continue to take pictures until StopShootPhotoAsync is called. For thermal imaging camera and Z30 camera, it can only be set to 255.
int intervalThe time interval between when two photos are taken. The range for this parameter depends the photo file format(PhotoStorageFormat). When the file format is JPEG, the range is [2, 2^16 - 1] seconds; when the file format is RAW or RAW+JPEG, the range is [10, 2^16 - 1] seconds.
struct CameraStorageLocationMsg
struct CameraStorageLocationMsg
Declaration:DJI.WindowsSDK
Description:

A class contains a storage location of cameras.

Struct Members:
CameraStorageLocation valueThe actual value of the class.
enum CameraFocusMode
enum CameraFocusMode
Declaration:DJI.WindowsSDK
Description:

Camera focus mode. For cameras with changeable lens, the focus mode is only valid when the physical AF switch on the camera is set to auto.

Enum Members:
MANUALThe camera's focus mode is set to manual. In this mode, user sets the focus ring value to adjust the focal distance.
AFThe camera's focus mode is set to auto. A focus target can be set by the user, which is used to calculate focus automatically.
AFCThe camera's focus mode is set to Continuous AF.
UNKNOWNUnknown.
enum CameraSDCardState
enum CameraSDCardState
Declaration:DJI.WindowsSDK
Description:

States of the camera's SD card.

Enum Members:
NORMALThe SD card is in the normal state.
NOT_INSERTEDThe SD card is not inserted.
INVALIDThe SD card is in invalid state.
READ_ONLYThe SD card is in read-only state and write operation is not allowed.
FORMAT_NEEDEDIt is required to format the SD card before using it.
FORMATTINGThe SD card is being formatted.
INVALID_FILE_SYSTEMThe SD card is using an invalid file system. Format the SD card before using it.
BUSYThe SD card is busy.
FULLThe SD card is full.
SLOWThe SD card is too slow.
UNKOWN_ERRORThe SD card encounters an unknown error.
NO_REMAINING_FILE_INDICESNo remaining file indices for any new photos or videos.
INITIALIZINGThe SD card is in initializing state.
FORMAT_RECOMMENDEDIt is recommended to format the SD card before using it.
RECOVERING_FILESThe camera is recovering the damaged files on the SD card.
WRITING_SLOWLYThe SD card is being written in a slow speed.
UNKNOWNUnknown.
enum CameraExposureMode
enum CameraExposureMode
Declaration:DJI.WindowsSDK
Description:

Camera exposure modes. The different exposure modes define whether Aperture, Shutter Speed, ISO can be set automatically or manually. Exposure compensation can be changed in all modes except Manual mode where it is not settable.
Program Mode: Shutter: Auto Aperture: Auto ISO: Manual or Auto
Shutter Priority: Shutter: Manual Aperture: Auto ISO: Manual or Auto
Aperture Priority: Shutter: Auto Aperture: Manual ISO: Manual or Auto
Manual Mode: Shutter: Manual Aperture: Manual ISO: Manual

Enum Members:
PROGRAMProgram mode.
SHUTTER_PRIORITYShutter priority mode.
APERTURE_PRIORITYAperture priority mode.
MANUALManual mode.
UNKNOWNUnknown.
enum CameraShutterSpeed
enum CameraShutterSpeed
Declaration:DJI.WindowsSDK
Description:

Camera's shutter speed options.

Enum Members:
SHUTTER_SPEED1_8000Camera's shutter speed 1/8000 s.
SHUTTER_SPEED1_6400Camera's shutter speed 1/6400 s.
SHUTTER_SPEED1_6000Camera's shutter speed 1/6000 s.
SHUTTER_SPEED1_5000Camera's shutter speed 1/5000 s.
SHUTTER_SPEED1_4000Camera's shutter speed 1/4000 s.
SHUTTER_SPEED1_3200Camera's shutter speed 1/3200 s.
SHUTTER_SPEED1_3000Camera's shutter speed 1/3000 s.
SHUTTER_SPEED1_2500Camera's shutter speed 1/2500 s.
SHUTTER_SPEED1_2000Camera's shutter speed 1/2000 s.
SHUTTER_SPEED1_1600Camera's shutter speed 1/1600 s.
SHUTTER_SPEED1_1500Camera's shutter speed 1/1500 s.
SHUTTER_SPEED1_1250Camera's shutter speed 1/1250 s.
SHUTTER_SPEED1_1000Camera's shutter speed 1/1000 s.
SHUTTER_SPEED1_800Camera's shutter speed 1/800 s.
SHUTTER_SPEED1_725Camera's shutter speed 1/725 s.
SHUTTER_SPEED1_640Camera's shutter speed 1/640 s.
SHUTTER_SPEED1_500Camera's shutter speed 1/500 s.
SHUTTER_SPEED1_400Camera's shutter speed 1/400 s.
SHUTTER_SPEED1_350Camera's shutter speed 1/350 s.
SHUTTER_SPEED1_320Camera's shutter speed 1/320 s.
SHUTTER_SPEED1_250Camera's shutter speed 1/250 s.
SHUTTER_SPEED1_240Camera's shutter speed 1/240 s.
SHUTTER_SPEED1_200Camera's shutter speed 1/200 s.
SHUTTER_SPEED1_180Camera's shutter speed 1/180 s.
SHUTTER_SPEED1_160Camera's shutter speed 1/160 s.
SHUTTER_SPEED1_125Camera's shutter speed 1/125 s.
SHUTTER_SPEED1_120Camera's shutter speed 1/120 s.
SHUTTER_SPEED1_100Camera's shutter speed 1/100 s.
SHUTTER_SPEED1_90Camera's shutter speed 1/90 s.
SHUTTER_SPEED1_80Camera's shutter speed 1/80 s.
SHUTTER_SPEED1_60Camera's shutter speed 1/60 s.
SHUTTER_SPEED1_50Camera's shutter speed 1/50 s.
SHUTTER_SPEED1_40Camera's shutter speed 1/40 s.
SHUTTER_SPEED1_30Camera's shutter speed 1/30 s.
SHUTTER_SPEED1_25Camera's shutter speed 1/25 s.
SHUTTER_SPEED1_20Camera's shutter speed 1/20 s.
SHUTTER_SPEED1_15Camera's shutter speed 1/15 s.
SHUTTER_SPEED1_12DOT5Camera's shutter speed 1/12.5 s.
SHUTTER_SPEED1_10Camera's shutter speed 1/10 s.
SHUTTER_SPEED1_8Camera's shutter speed 1/8 s.
SHUTTER_SPEED1_6DOT25Camera's shutter speed 1/6.25 s.
SHUTTER_SPEED1_5Camera's shutter speed 1/5 s.
SHUTTER_SPEED1_4Camera's shutter speed 1/4 s.
SHUTTER_SPEED1_3Camera's shutter speed 1/3 s.
SHUTTER_SPEED1_2DOT5Camera's shutter speed 1/2.5 s.
SHUTTER_SPEED1_2Camera's shutter speed 1/2 s.
SHUTTER_SPEED1_1DOT67Camera's shutter speed 1/1.67 s.
SHUTTER_SPEED1_1DOT25Camera's shutter speed 1/1.25 s.
SHUTTER_SPEED1Camera's shutter speed 1.0 s.
SHUTTER_SPEED1DOT3Camera's shutter speed 1.3 s.
SHUTTER_SPEED1DOT6Camera's shutter speed 1.6 s.
SHUTTER_SPEED2Camera's shutter speed 2.0 s.
SHUTTER_SPEED2DOT5Camera's shutter speed 2.5 s.
SHUTTER_SPEED3Camera's shutter speed 3.0 s.
SHUTTER_SPEED3DOT2Camera's shutter speed 3.2 s.
SHUTTER_SPEED4Camera's shutter speed 4.0 s.
SHUTTER_SPEED5Camera's shutter speed 5.0 s.
SHUTTER_SPEED6Camera's shutter speed 6.0 s.
SHUTTER_SPEED7Camera's shutter speed 7.0 s.
SHUTTER_SPEED8Camera's shutter speed 8.0 s.
SHUTTER_SPEED9Camera's shutter speed 9.0 s.
SHUTTER_SPEED10Camera's shutter speed 10.0 s.
SHUTTER_SPEED13Camera's shutter speed 13.0 s.
SHUTTER_SPEED15Camera's shutter speed 15.0 s.
SHUTTER_SPEED20Camera's shutter speed 20.0 s.
SHUTTER_SPEED25Camera's shutter speed 25.0 s.
SHUTTER_SPEED30Camera's shutter speed 30.0 s.
UNKNOWNUnknown.
enum VideoResolution
enum VideoResolution
Declaration:DJI.WindowsSDK
Description:

Camera video resolution values.

Enum Members:
RESOLUTION_640x480The camera's video resolution is 640x480.
RESOLUTION_640x512The camera's video resolution is 640x512.
RESOLUTION_1280x720The camera's video resolution is 1280x720.
RESOLUTION_1920x960The camera's video resolution is 1920x960.
RESOLUTION_1920x1080The camera's video resolution is 1920x1080.
RESOLUTION_2048x1080The camera's video resolution is 2048x1080.
RESOLUTION_2704x1520The camera's video resolution is 2704x1520.
RESOLUTION_2720x1530The camera's video resolution is 2720x1530.
RESOLUTION_3840x1572The camera's video resolution is 3840x1572.
RESOLUTION_3840x2160The camera's video resolution is 3840x2160.
RESOLUTION_4096x2160The camera's video resolution is 4096x2160.
RESOLUTION_4608x2160The camera's video resolution is 4608x2160.
RESOLUTION_4608x2592The camera's video resolution is 4608x2592.
RESOLUTION_5280x2160The camera's video resolution is 5280x2160.
RESOLUTION_5280x2972The camera's video resolution is 5280x2972.
RESOLUTION_5760x3240The camera's video resolution is 5760x3240.
RESOLUTION_6016x3200The camera's video resolution is 6016x3200.
RESOLUTION_MAXThe camera's video resolution will be maximum resolution supported by the camera sensor. For X5S and X4S, the maximum resolution is 5280x2972.
RESOLUTION_NO_SSD_VIDEOThe camera's SSD video resolution is unset. When the SSD resolution is unset, camera will not store video to SSD. SSD's resolution is determined by both license key and SD card's video frame rate. If there is no supported resolution with the current configuration, RESOLUTION_NO_SSD_VIDEO will be selected and user should adjust either the license or the frame rate.
RESOLUTION_2688x1512The camera's video resolution is 2688x1512.
UNKNOWNUnknown.
enum CameraType
enum CameraType
Declaration:DJI.WindowsSDK
Description:

Camera type of the device.

Enum Members:
MAVIC_AIR_CAMERAThe camera of mavic air.
MAVIC_2_ZOOMThe camera of mavic 2 zoom.
P4P_V2_CAMERAThe camera of p4p.
MAVIC_2_PROThe camera of mavic 2 pro.
UNKNOWNUnknown.
enum VideoFileCompressionStandard
enum VideoFileCompressionStandard
Declaration:DJI.WindowsSDK
Description:

Camera video file compression standard values.

Enum Members:
H264H.264 format.
H265H.265 format.
UNKNOWNUnknown.
enum VideoFrameRate
enum VideoFrameRate
Declaration:DJI.WindowsSDK
Description:

Camera video frame rate values.

Enum Members:
RATE_24FPSThe camera's video frame rate is 23.976fps (frames per second).
RATE_25FPSThe camera's video frame rate is 25fps (frames per second).
RATE_30FPSThe camera's video frame rate is 29.97fps (frames per second).
RATE_48FPSThe camera's video frame rate is 47.95fps (frames per second).
RATE_50FPSThe camera's video frame rate is 50fps (frames per second).
RATE_60FPSThe camera's video frame rate is 59.94fps (frames per second).
RATE_90FPSThe camera's video frame rate is 90fps (frames per second).
RATE_96FPSThe camera's video frame rate is 96fps (frames per second).
RATE_100FPSThe camera's video frame rate is 100fps (frames per second).
RATE_120FPSThe camera's video frame rate is 120fps (frames per second).
RATE_180FPSThe camera's video frame rate is 180fps (frames per second).
RATE_192FPSThe camera's video frame rate is 192fps (frames per second).
RATE_200FPSThe camera's video frame rate is 200fps (frames per second).
RATE_240FPSThe camera's video frame rate is 240fps (frames per second).
RATE_400FPSThe camera's video frame rate is 400fps (frames per second).
RATE_480FPSThe camera's video frame rate is 480fps (frames per second).
RATE_PRECISE_24FPSThe camera's video frame rate is 24fps (frames per second).
RATE_PRECISE_30FPSThe camera's video frame rate is 30fps (frames per second).
RATE_PRECISE_48FPSThe camera's video frame rate is 48fps (frames per second).
RATE_PRECISE_60FPSThe camera's video frame rate is 60fps (frames per second).
UNKNOWNUnknown.
enum CameraAntiFlicker
enum CameraAntiFlicker
Declaration:DJI.WindowsSDK
Description:

Camera anti-flicker options.

Enum Members:
ANTI_FLICKER_AUTOThe camera's anti-flicker is automatically set.
ANTI_FLICKER_60HZThe camera's anti-flicker is 60 Hz.
ANTI_FLICKER_50HZThe camera's anti-flicker is 50 Hz.
ANTI_FLICKER_OFFThe camera's anti-flicker is off.
UNKNOWNUnknown.
enum CameraColor
enum CameraColor
Declaration:DJI.WindowsSDK
Description:

Camera color.

Enum Members:
NONENone.
ARTArt.
REMINISCENCEReminiscence.
D_CINE_LIKED-Clinelike.
BLACK_WHITEBlack and white.
D_LOGDLog.
FILMFilm.
FILM_BFilm B.
FILM_CFilm C.
FILM_DFilm D.
FILM_EFilm E.
FILM_FFilm F.
FILM_GFilm G.
FILM_HFilm H.
FILM_IFilm I.
HLGHLG.
TRUE_COLORTrue color.
UNKNOWNUnknown.
enum CameraExposureCompensation
enum CameraExposureCompensation
Declaration:DJI.WindowsSDK
Description:

Camera exposure compensation.

Enum Members:
NEG_5P0EVThe camera's exposure compensation is -5.0ev.
NEG_4P7EVThe camera's exposure compensation is -4.7ev.
NEG_4P3EVThe camera's exposure compensation is -4.3ev.
NEG_4P0EVThe camera's exposure compensation is -4.0ev.
NEG_3P7EVThe camera's exposure compensation is -3.7ev.
NEG_3P3EVThe camera's exposure compensation is -3.3ev.
NEG_3P0EVThe camera's exposure compensation is -3.0ev.
NEG_2P7EVThe camera's exposure compensation is -2.7ev.
NEG_2P3EVThe camera's exposure compensation is -2.3ev.
NEG_2P0EVThe camera's exposure compensation is -2.0ev.
NEG_1P7EVThe camera's exposure compensation is -1.7ev.
NEG_1P3EVThe camera's exposure compensation is -1.3ev.
NEG_1P0EVThe camera's exposure compensation is -1.0ev.
NEG_0P7EVThe camera's exposure compensation is -0.7ev.
NEG_0P3EVThe camera's exposure compensation is -0.3ev.
NEG_0EVThe camera's exposure compensation is 0.0ev.
POS_0P3EVThe camera's exposure compensation is +0.3ev.
POS_0P7EVThe camera's exposure compensation is +0.7ev.
POS_1P0EVThe camera's exposure compensation is +1.0ev.
POS_1P3EVThe camera's exposure compensation is +1.3ev.
POS_1P7EVThe camera's exposure compensation is +1.7ev.
POS_2P0EVThe camera's exposure compensation is +2.0ev.
POS_2P3EVThe camera's exposure compensation is +2.3ev.
POS_2P7EVThe camera's exposure compensation is +2.7ev.
POS_3P0EVThe camera's exposure compensation is +3.0ev.
POS_3P3EVThe camera's exposure compensation is +3.3ev.
POS_3P7EVThe camera's exposure compensation is +3.7ev.
POS_4P0EVThe camera's exposure compensation is +4.0ev.
POS_4P3EVThe camera's exposure compensation is +4.3ev.
POS_4P7EVThe camera's exposure compensation is +4.7ev.
POS_5P0EVThe camera's exposure compensation is +5.0ev.
UNKNOWNUnknown.
enum CameraWorkMode
enum CameraWorkMode
Declaration:DJI.WindowsSDK
Description:

Camera work modes.

Enum Members:
SHOOT_PHOTOShoot photo mode. In this mode, the user can shoot photos.
RECORD_VIDEORecord video mode. In this mode, the user can record videos.
PLAYBACKPlayback mode. In this mode, the user can preview photos and videos, and can delete files.
MEDIA_DOWNLOADIn this mode, the user can download media to the Mobile Device.
BROADCASTIn this mode, live stream resolution and frame rate will be 1080i50 (PAL) or 720p60 (NTSC). In this mode videos can be recorded. Still photos can also be taken only when video is recording. The only way to exit broadcast mode is to change modes to RECORD_VIDEO. Only supported by Inspire 2.
TRANSCODEIn this mode, the user can download media to the Mobile Device.
UNKNOWNUnknown.
enum CameraShootPhotoMode
enum CameraShootPhotoMode
Declaration:DJI.WindowsSDK
Description:

The ShootPhoto mode itself can have several modes.

Enum Members:
NORMALSets the camera to take a single photo.
HDRSets the camera to take an HDR photo.
BURSTSet the camera to take multiple photos at once.
AEBAutomatic Exposure Bracketing (AEB) capture. In this mode you can quickly take multiple shots (the default is 3) at different exposures without having to manually change any settings between frames.
INTERVALSets the camera to take a picture (or multiple pictures) continuously at a set time interval.
RAW_BURSTSets the camera to take a burst of RAW photos. Use rawPhotoBurstCount to check how many photos have been shot. Only supported by X5S.
EHDRSets the camera to take an enhanced-HDR photo. It blends a sequence of photos for ghost-free high dynamic range photos. It is supported by Mavic 2 Zoom and Mavic 2 Pro.
UNKNOWNUnknown.
enum CameraISO
enum CameraISO
Declaration:DJI.WindowsSDK
Description:

Camera ISO values.

Enum Members:
ISO_AUTOThe ISO value is automatically set. This cannot be used for all cameras when in Manual mode.
ISO_100The ISO value is set to 100.
ISO_200The ISO value is set to 200.
ISO_400The ISO value is set to 400.
ISO_800The ISO value is set to 800.
ISO_1600The ISO value is set to 1600.
ISO_3200The ISO value is set to 3200.
ISO_6400The ISO value is set to 6400.
ISO_12800The ISO value is set to 12800.
ISO_25600The ISO value is set to 25600.
ISO_FIXEDISO value is fixed by the camera firmware. When the digital filter is set to D-Log, camera will fix the ISO to a specific value in order to optimize the performance. The value set by camera can be accessed from ISO.
UNKNOWNUnknown.
enum PhotoRatio
enum PhotoRatio
Declaration:DJI.WindowsSDK
Description:

Photo aspect ratio, where the first value is the width and the second value is the height.

Enum Members:
RATIO_4COLON3The camera's photo ratio is 4:3.
RATIO_16COLON9The camera's photo ratio is 16:9.
RATIO_3COLON2The camera's photo ratio is 3:2. It is only supported by Phantom 4 Pro camera.
RATIO_SQUAREThe camera's photo ratio is 1:1.
RATIO_18COLON9The camera's photo ratio is 18:9.
UNKNOWNUnknown.
enum MediaFileType
enum MediaFileType
Declaration:DJI.WindowsSDK
Description:

File type of the media file.

Enum Members:
JPEGImage of JPEG format.
DNGImage of DNG format.
MOVVideo of MOV format.
MP4Video of MP4 format.
PANORAMAPanorama file type.
TIFFTIFF file type.
UNKNOWNUnknown.
enum CameraMeteringMode
enum CameraMeteringMode
Declaration:DJI.WindowsSDK
Description:

Camera exposure metering.

Enum Members:
CENTERThe camera's exposure metering is set to the center.
AVERAGEThe camera's exposure metering is set to average.
SPOTThe camera's exposure metering is set to a single spot.
UNKNOWNUnknown.
enum PhotoStorageFormat
enum PhotoStorageFormat
Declaration:DJI.WindowsSDK
Description:

Camera photo file formats.

Enum Members:
RAWThe camera's photo storage format is RAW.
JPEGThe camera's photo storage format is JPEG.
RAW_JPEGThe camera stores both the RAW and JPEG formats of the photo.
UNKNOWNUnknown.
enum CameraFocusState
enum CameraFocusState
Declaration:DJI.WindowsSDK
Description:

The focusing status of the camera.

Enum Members:
IDLEThe camera is idle. No focus target has been set.
FOCUSINGThe camera is focusing on the target.
SUCCESSFULThe camera succeeded to focus on the target.
FAILEDThe camera failed to focus on the target. This happens when the target is too close, or the camera cannot distinguish the object to focus (e.g. a white wall).
UNKNOWNUnknown.
enum CameraStorageLocation
enum CameraStorageLocation
Declaration:DJI.WindowsSDK
Description:

Different storage locations supported by the camera.

Enum Members:
SDCARDSD card.
INTERNAL_STORAGEThe internal storage embedded in the aircraft. When it is available, the camera can shoot photos or record videos without SD card. It is only supported by Mavic Air.
UNKNOWNUnknown.
property
property ProductIndex
uint ProductIndex { get; }
Declaration:DJI.WindowsSDK.Components
Description:

The index of the product to which this component handler belongs. The default product index is 0.

property ComponentIndex
uint ComponentIndex { get; }
Declaration:DJI.WindowsSDK.Components
Description:

The index of the component. It is unique for a type of components inside a product. It is useful when a product has multiple handlers of the same kind. If the product only has one handler of this kind, the index is 0.

method ~CameraHandler
~CameraHandler()
Declaration:DJI.WindowsSDK.Components
Description:

The destructor. It should not be called explicitly.

delegate CameraAntiFlickerMsgChangedEventHandler
delegate void CameraAntiFlickerMsgChangedEventHandler(object sender, CameraAntiFlickerMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraAntiFlickerMsg.

delegate CameraISOMsgChangedEventHandler
delegate void CameraISOMsgChangedEventHandler(object sender, CameraISOMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraISOMsg.

delegate CameraColorMsgChangedEventHandler
delegate void CameraColorMsgChangedEventHandler(object sender, CameraColorMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraColorMsg.

delegate PhotoIntervalShootSettingsChangedEventHandler
delegate void PhotoIntervalShootSettingsChangedEventHandler(object sender, PhotoIntervalShootSettings? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type PhotoIntervalShootSettings.

delegate PhotoStorageFormatMsgChangedEventHandler
delegate void PhotoStorageFormatMsgChangedEventHandler(object sender, PhotoStorageFormatMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type PhotoStorageFormatMsg.

delegate CameraFocusModeMsgChangedEventHandler
delegate void CameraFocusModeMsgChangedEventHandler(object sender, CameraFocusModeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraFocusModeMsg.

delegate CameraShootPhotoModeMsgChangedEventHandler
delegate void CameraShootPhotoModeMsgChangedEventHandler(object sender, CameraShootPhotoModeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraShootPhotoModeMsg.

delegate CameraShutterSpeedMsgChangedEventHandler
delegate void CameraShutterSpeedMsgChangedEventHandler(object sender, CameraShutterSpeedMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraShutterSpeedMsg.

delegate CameraWhiteBalanceChangedEventHandler
delegate void CameraWhiteBalanceChangedEventHandler(object sender, CameraWhiteBalance? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraWhiteBalance.

delegate CameraWorkModeMsgChangedEventHandler
delegate void CameraWorkModeMsgChangedEventHandler(object sender, CameraWorkModeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraWorkModeMsg.

delegate PhotoRatioMsgChangedEventHandler
delegate void PhotoRatioMsgChangedEventHandler(object sender, PhotoRatioMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type PhotoRatioMsg.

delegate CameraExposureCompensationMsgChangedEventHandler
delegate void CameraExposureCompensationMsgChangedEventHandler(object sender, CameraExposureCompensationMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraExposureCompensationMsg.

delegate CameraActualFocusAreaChangedEventHandler
delegate void CameraActualFocusAreaChangedEventHandler(object sender, CameraActualFocusArea? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraActualFocusArea.

delegate CameraMeteringModeMsgChangedEventHandler
delegate void CameraMeteringModeMsgChangedEventHandler(object sender, CameraMeteringModeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraMeteringModeMsg.

delegate VideoResolutionAndFrameRateChangedEventHandler
delegate void VideoResolutionAndFrameRateChangedEventHandler(object sender, VideoResolutionAndFrameRate? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type VideoResolutionAndFrameRate.

delegate CameraFocusStateMsgChangedEventHandler
delegate void CameraFocusStateMsgChangedEventHandler(object sender, CameraFocusStateMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraFocusStateMsg.

delegate CameraExposureModeMsgChangedEventHandler
delegate void CameraExposureModeMsgChangedEventHandler(object sender, CameraExposureModeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraExposureModeMsg.

delegate GeneratedMediaFileInfoChangedEventHandler
delegate void GeneratedMediaFileInfoChangedEventHandler(object sender, GeneratedMediaFileInfo? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type GeneratedMediaFileInfo.

delegate CameraSDCardStateMsgChangedEventHandler
delegate void CameraSDCardStateMsgChangedEventHandler(object sender, CameraSDCardStateMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraSDCardStateMsg.

delegate CameraColorRangeMsgChangedEventHandler
delegate void CameraColorRangeMsgChangedEventHandler(object sender, CameraColorRangeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraColorRangeMsg.

delegate CameraTypeMsgChangedEventHandler
delegate void CameraTypeMsgChangedEventHandler(object sender, CameraTypeMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type CameraTypeMsg.

delegate VideoFileCompressionStandardMsgChangedEventHandler
delegate void VideoFileCompressionStandardMsgChangedEventHandler(object sender, VideoFileCompressionStandardMsg? value)
Declaration:DJI.WindowsSDK
Description:

A delegate type used to subscribe the updated values in type VideoFileCompressionStandardMsg.

method GetIsTakingPhotoAsync
async Task<ResultValue<BoolMsg?>> GetIsTakingPhotoAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check if the camera is shooting photos.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method GetCameraTypeAsync
async Task<ResultValue<CameraTypeMsg?>> GetCameraTypeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter the camera type of the aircraft.

Return:
async Task<ResultValue<CameraTypeMsg?>>A Task<ResultValue<CameraTypeMsg?>> object.
method GetCameraColorRangeAsync
async Task<ResultValue<CameraColorRangeMsg?>> GetCameraColorRangeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter the camera color of the camera.

Return:
async Task<ResultValue<CameraColorRangeMsg?>>A Task<ResultValue<CameraColorRangeMsg?>> object.
method GetIsRecordingAsync
async Task<ResultValue<BoolMsg?>> GetIsRecordingAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check if the camera is recording videos.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method GetVideoFileCompressionStandardAsync
async Task<ResultValue<VideoFileCompressionStandardMsg?>> GetVideoFileCompressionStandardAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to get video file comression standard.

Return:
async Task<ResultValue<VideoFileCompressionStandardMsg?>>A Task<ResultValue<VideoFileCompressionStandardMsg?>> object.
method SetVideoFileCompressionStandardAsync
async Task<SDKError> SetVideoFileCompressionStandardAsync(VideoFileCompressionStandardMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the video file comression standard of aircraft.

Input Parameters:
VideoFileCompressionStandardMsg valueA parameter object of type VideoFileCompressionStandardMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method SetPhotoRatioAsync
async Task<SDKError> SetPhotoRatioAsync(PhotoRatioMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the photo ratio for the camera.

Input Parameters:
PhotoRatioMsg valueA parameter object of type PhotoRatioMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetPhotoRatioAsync
async Task<ResultValue<PhotoRatioMsg?>> GetPhotoRatioAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the photo ratio of the camera.

Return:
async Task<ResultValue<PhotoRatioMsg?>>A Task<ResultValue<PhotoRatioMsg?>> object.
method SetISOAsync
async Task<SDKError> SetISOAsync(CameraISOMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets ISO of the camera.

Input Parameters:
CameraISOMsg valueA parameter object of type CameraISOMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetISOAsync
async Task<ResultValue<CameraISOMsg?>> GetISOAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the ISO of the camera.

Return:
async Task<ResultValue<CameraISOMsg?>>A Task<ResultValue<CameraISOMsg?>> object.
method StartRecordAsync
async Task<SDKError> StartRecordAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Starts to record video. It is only valid when the camera work mode is RECORD_VIDEO. The started video should be stopped by calling StopRecordAsync.

Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method StopRecordAsync
async Task<SDKError> StopRecordAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Stops recording video. It is only valid when the camera is recording a video.

Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method SetCameraWorkModeAsync
async Task<SDKError> SetCameraWorkModeAsync(CameraWorkModeMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's work mode to taking pictures, video, playback or download. Please note that you cannot change the mode when a certain task is executing, such as taking photo(s), recording video, or downloading and saving files. Also supported by thermal imaging camera.

Input Parameters:
CameraWorkModeMsg valueA parameter object of type CameraWorkModeMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraWorkModeAsync
async Task<ResultValue<CameraWorkModeMsg?>> GetCameraWorkModeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the camera's work mode.

Return:
async Task<ResultValue<CameraWorkModeMsg?>>A Task<ResultValue<CameraWorkModeMsg?>> object.
method GetCameraSDCardInsertedAsync
async Task<ResultValue<BoolMsg?>> GetCameraSDCardInsertedAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check if SD card is inserted to the camera.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method GetCameraSDCardStateAsync
async Task<ResultValue<CameraSDCardStateMsg?>> GetCameraSDCardStateAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the camera's SD card state.

Return:
async Task<ResultValue<CameraSDCardStateMsg?>>A Task<ResultValue<CameraSDCardStateMsg?>> object.
method GetCameraStoringFileAsync
async Task<ResultValue<BoolMsg?>> GetCameraStoringFileAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check if the camera is storing a file.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method GetSDCardTotalSpaceAsync
async Task<ResultValue<IntMsg?>> GetSDCardTotalSpaceAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to receive the total sapce in MB of the SD card.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetSDCardRemainSpaceAsync
async Task<ResultValue<IntMsg?>> GetSDCardRemainSpaceAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to receive the SD card's remaining space in MB.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetSDCardAvailablePhotoCountAsync
async Task<ResultValue<IntMsg?>> GetSDCardAvailablePhotoCountAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the number of pictures that can be taken with the remaining space available on the storage.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetSDCardAvailableVideoDurationAsync
async Task<ResultValue<IntMsg?>> GetSDCardAvailableVideoDurationAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the number of seconds available for recording with the remaining space available on the storage.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetRecordingTimeAsync
async Task<ResultValue<IntMsg?>> GetRecordingTimeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the duration, in seconds, of the video currently being recorded by the camera.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method SetExposureModeAsync
async Task<SDKError> SetExposureModeAsync(CameraExposureModeMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's exposure mode. Check CameraExposureMode to view all possible camera exposure modes. Please note that in different exposure mode, it will have different values for the same setting.

Input Parameters:
CameraExposureModeMsg valueA parameter object of type CameraExposureModeMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetExposureModeAsync
async Task<ResultValue<CameraExposureModeMsg?>> GetExposureModeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Getter to check the exposure mode of the camera.

Return:
async Task<ResultValue<CameraExposureModeMsg?>>A Task<ResultValue<CameraExposureModeMsg?>> object.
method SetShutterSpeedAsync
async Task<SDKError> SetShutterSpeedAsync(CameraShutterSpeedMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera shutter speed. To see all available shutterSpeed value settings, see CameraShutterSpeed. The shutter speed should not be set slower than the video frame rate when the camera's mode is RECORD_VIDEO. For example, if the video frame rate is 30fps, the shutterSpeed must be <= 1/30.
Precondition: The shutter speed can be set only when the camera exposure mode is Shutter mode or Manual mode.

Input Parameters:
CameraShutterSpeedMsg valueA parameter object of type CameraShutterSpeedMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetShutterSpeedAsync
async Task<ResultValue<CameraShutterSpeedMsg?>> GetShutterSpeedAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's shutter speed.

Return:
async Task<ResultValue<CameraShutterSpeedMsg?>>A Task<ResultValue<CameraShutterSpeedMsg?>> object.
method GetVideoResolutionAndFrameRateAsync
async Task<ResultValue<VideoResolutionAndFrameRate?>> GetVideoResolutionAndFrameRateAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's video resolution and frame rate values.

Return:
async Task<ResultValue<VideoResolutionAndFrameRate?>>A Task<ResultValue<VideoResolutionAndFrameRate?>> object.
method SetVideoResolutionAndFrameRateAsync
async Task<SDKError> SetVideoResolutionAndFrameRateAsync(VideoResolutionAndFrameRate value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's video resolution and frame rate.

Input Parameters:
VideoResolutionAndFrameRate valueA parameter object of type VideoResolutionAndFrameRate.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method SetAntiFlickerAsync
async Task<SDKError> SetAntiFlickerAsync(CameraAntiFlickerMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's anti-flicker frequency for video recording.
Precondition: The exposure mode must be Program.

Input Parameters:
CameraAntiFlickerMsg valueA parameter object of type CameraAntiFlickerMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetAntiFlickerAsync
async Task<ResultValue<CameraAntiFlickerMsg?>> GetAntiFlickerAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's anti-flicker.

Return:
async Task<ResultValue<CameraAntiFlickerMsg?>>A Task<ResultValue<CameraAntiFlickerMsg?>> object.
method SetCameraColorAsync
async Task<SDKError> SetCameraColorAsync(CameraColorMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's color.

Input Parameters:
CameraColorMsg valueA parameter object of type CameraColorMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraColorAsync
async Task<ResultValue<CameraColorMsg?>> GetCameraColorAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's color.

Return:
async Task<ResultValue<CameraColorMsg?>>A Task<ResultValue<CameraColorMsg?>> object.
method SetExposureCompensationAsync
async Task<SDKError> SetExposureCompensationAsync(CameraExposureCompensationMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's exposure compensation. See CameraExposureCompensation to view all possible exposure compensations to which the camera can be set. In order to use this function, set the camera exposure mode to shutter, program or aperture.

Input Parameters:
CameraExposureCompensationMsg valueA parameter object of type CameraExposureCompensationMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetExposureCompensationAsync
async Task<ResultValue<CameraExposureCompensationMsg?>> GetExposureCompensationAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's exposure compensation.

Return:
async Task<ResultValue<CameraExposureCompensationMsg?>>A Task<ResultValue<CameraExposureCompensationMsg?>> object.
method SetAELockEnabledAsync
async Task<SDKError> SetAELockEnabledAsync(BoolMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Locks or unlocks the camera's AE (auto exposure).
Post condition: If the AE lock is enabled, the spot metering area cannot be set.

Input Parameters:
BoolMsg valueA parameter object of type BoolMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetAELockEnabledAsync
async Task<ResultValue<BoolMsg?>> GetAELockEnabledAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Determines if the camera's AE (auto exposure) is locked.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method SetCameraFocusModeAsync
async Task<SDKError> SetCameraFocusModeAsync(CameraFocusModeMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the lens focus mode.

Input Parameters:
CameraFocusModeMsg valueA parameter object of type CameraFocusModeMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraFocusModeAsync
async Task<ResultValue<CameraFocusModeMsg?>> GetCameraFocusModeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the lens focus mode.

Return:
async Task<ResultValue<CameraFocusModeMsg?>>A Task<ResultValue<CameraFocusModeMsg?>> object.
method GetCameraFocusTargetAsync
async Task<ResultValue<DoublePoint2D?>> GetCameraFocusTargetAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's focus target point for auto-focus.

Return:
async Task<ResultValue<DoublePoint2D?>>A Task<ResultValue<DoublePoint2D?>> object.
method SetCameraFocusTargetAsync
async Task<SDKError> SetCameraFocusTargetAsync(DoublePoint2D value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the lens focus target point. When the focus mode is auto, the target point is the focal point. When the focus mode is manual, the target point is the zoom out area if the focus assistant is supported and enabled for the manual mode.

Input Parameters:
DoublePoint2D valueA parameter object of type DoublePoint2D.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraFocusRingValueAsync
async Task<ResultValue<IntMsg?>> GetCameraFocusRingValueAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's focus ring value.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method SetCameraFocusRingValueAsync
async Task<SDKError> SetCameraFocusRingValueAsync(IntMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Set the focal distance by simulating the focus ring adjustment. Value can have a range of [0, GetCameraFocusRingMaxValueAsync], which represents infinity and the closest possible focal distance. For some lenses, the minimum focus ring value is larger than 0. For example the minimum of DJI MFT 15mm f/1.7 ASPH is 270. To retrieve the minimum value, perform the following steps:
(1) Call SetCameraFocusModeAsync with AF.
(2) Call SetCameraFocusTargetAsync with the furthest target (>30m).
(3) Call GetCameraFocusRingValueAsync to get the current focus ring value. This is the minimum value. The maximum value can be retrieved using GetCameraFocusRingMaxValueAsync.

Input Parameters:
IntMsg valueA parameter object of type IntMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraFocusRingMaxValueAsync
async Task<ResultValue<IntMsg?>> GetCameraFocusRingMaxValueAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the focusing ring value's max value of the camera.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetCameraActualFocusAreaAsync
async Task<ResultValue<CameraActualFocusArea?>> GetCameraActualFocusAreaAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the actual area that the camera focused on. The focus target input by the user is a point. The camera will use an area around the target as reference for focusing.

Return:
async Task<ResultValue<CameraActualFocusArea?>>A Task<ResultValue<CameraActualFocusArea?>> object.
method GetCameraFocusPointCountAsync
async Task<ResultValue<IntVector2D?>> GetCameraFocusPointCountAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the focus point counts in 2 dimensions. The focus points of a camera is finite and discrete.

Return:
async Task<ResultValue<IntVector2D?>>A Task<ResultValue<IntVector2D?>> object.
method GetExposureMeteringPointCountAsync
async Task<ResultValue<IntVector2D?>> GetExposureMeteringPointCountAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the exposure spot metering point counts in 2 dimensions. The metering point counts of a camera is finite and discrete.

Return:
async Task<ResultValue<IntVector2D?>>A Task<ResultValue<IntVector2D?>> object.
method SetCameraMeteringModeAsync
async Task<SDKError> SetCameraMeteringModeAsync(CameraMeteringModeMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's exposure metering.

Input Parameters:
CameraMeteringModeMsg valueA parameter object of type CameraMeteringModeMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraMeteringModeAsync
async Task<ResultValue<CameraMeteringModeMsg?>> GetCameraMeteringModeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's exposure metering.

Return:
async Task<ResultValue<CameraMeteringModeMsg?>>A Task<ResultValue<CameraMeteringModeMsg?>> object.
method GetSpotMeteringTargetPointAsync
async Task<ResultValue<IntPoint2D?>> GetSpotMeteringTargetPointAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the spot metering area row index and column index. In order to make the method work, The camera exposure mode should be PROGRAM, SHUTTER_PRIORITY or APERTURE_PRIORITY, the exposure metering mode must be SPOT, and GetAELockEnabledAsync must be false.

Return:
async Task<ResultValue<IntPoint2D?>>A Task<ResultValue<IntPoint2D?>> object.
method SetSpotMeteringTargetPointAsync
async Task<SDKError> SetSpotMeteringTargetPointAsync(IntPoint2D value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the spot metering area index. The valid spots are returned from GetExposureMeteringPointCountAsync. The row index increases top to bottom across the image. The column increases left to right. In order to make the method work, The camera exposure mode should be PROGRAM, SHUTTER_PRIORITY or APERTURE_PRIORITY, the exposure metering mode must be SPOT, and GetAELockEnabledAsync must be false.

Input Parameters:
IntPoint2D valueA parameter object of type IntPoint2D.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetPhotoStorageFormatAsync
async Task<ResultValue<PhotoStorageFormatMsg?>> GetPhotoStorageFormatAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's photo file format.

Return:
async Task<ResultValue<PhotoStorageFormatMsg?>>A Task<ResultValue<PhotoStorageFormatMsg?>> object.
method SetPhotoStorageFormatAsync
async Task<SDKError> SetPhotoStorageFormatAsync(PhotoStorageFormatMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's photo file format.

Input Parameters:
PhotoStorageFormatMsg valueA parameter object of type PhotoStorageFormatMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetCameraFocusStateAsync
async Task<ResultValue<CameraFocusStateMsg?>> GetCameraFocusStateAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the focus state of the camera. Uses it to check if the auto-focusing action is successful or not.

Return:
async Task<ResultValue<CameraFocusStateMsg?>>A Task<ResultValue<CameraFocusStateMsg?>> object.
method GetWhiteBalanceAsync
async Task<ResultValue<CameraWhiteBalance?>> GetWhiteBalanceAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's white balance and color temperature.

Return:
async Task<ResultValue<CameraWhiteBalance?>>A Task<ResultValue<CameraWhiteBalance?>> object.
method SetWhiteBalanceAsync
async Task<SDKError> SetWhiteBalanceAsync(CameraWhiteBalance value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the camera's white balance. When the white balance is a preset value (values except MANUAL), the int colorTemperature argument does not take effect. When the white balance is MANUAL, the int colorTemperature value is used instead.

Input Parameters:
CameraWhiteBalance valueA parameter object of type CameraWhiteBalance.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetPhotoIntervalCountdownAsync
async Task<ResultValue<IntMsg?>> GetPhotoIntervalCountdownAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the countdown of the ongoing interval shoot. When the countdown becomes 0, the camera will take one photo and then continue on the next countdown. It is only valid when the camera is shooting interval photos.

Return:
async Task<ResultValue<IntMsg?>>A Task<ResultValue<IntMsg?>> object.
method GetPhotoIntervalShootSettingsAsync
async Task<ResultValue<PhotoIntervalShootSettings?>> GetPhotoIntervalShootSettingsAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the camera's interval shoot parameters.

Return:
async Task<ResultValue<PhotoIntervalShootSettings?>>A Task<ResultValue<PhotoIntervalShootSettings?>> object.
method SetPhotoIntervalShootSettingsAsync
async Task<SDKError> SetPhotoIntervalShootSettingsAsync(PhotoIntervalShootSettings value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the interval shoot parameters. The camera will capture a photo, wait a specified interval of time, take another photo, and continue in this manner until it has taken the required number of photos.

Input Parameters:
PhotoIntervalShootSettings valueA parameter object of type PhotoIntervalShootSettings.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method SetShootPhotoModeAsync
async Task<SDKError> SetShootPhotoModeAsync(CameraShootPhotoModeMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Sets the photo shooting mode for the camera.

Input Parameters:
CameraShootPhotoModeMsg valueA parameter object of type CameraShootPhotoModeMsg.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetShootPhotoModeAsync
async Task<ResultValue<CameraShootPhotoModeMsg?>> GetShootPhotoModeAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the photo shooting mode for the camera.

Return:
async Task<ResultValue<CameraShootPhotoModeMsg?>>A Task<ResultValue<CameraShootPhotoModeMsg?>> object.
method StartShootPhotoAsync
async Task<SDKError> StartShootPhotoAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Camera starts to take photo with one of the camera capture modes (shoot photo modes).Also,
Precondition:
1. Camera must be in Shoot Photo mode. Some camera's may support shooting photos in Record Video mode.
2. The SD card or the internal storage state should be checked before this method is used to ensure sufficient space exists.

Post condition:
If the capture mode is either Burst or Interval, calling StopShootPhotoAsync will be required for the camera to stop taking photos.

Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method StopShootPhotoAsync
async Task<SDKError> StopShootPhotoAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Camera stops taking photos.
Precondition:
1. StartShootPhotoAsync has been invoked and the shoot mode is either Interval or Time-lapse.
2. If the shoot mode is set to NORMAL, the camera will automatically stop taking the photo once the individual photo is taken.

Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method FormatStorageAsync
async Task<SDKError> FormatStorageAsync(CameraStorageLocationMsg value)
Declaration:DJI.WindowsSDK.Components
Description:

Formats the storage by deleting all the data on it.

Input Parameters:
CameraStorageLocationMsg valueA parameter object of type CameraStorageLocationMsg, which determines the storage to be formatted.
Return:
async Task<SDKError>A Task<SDKErrorCode> object.
method GetConnectionAsync
async Task<ResultValue<BoolMsg?>> GetConnectionAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Determines if a component is connected or not.

Return:
async Task<ResultValue<BoolMsg?>>A Task<ResultValue<BoolMsg?>> object.
method GetSerialNumberAsync
async Task<ResultValue<StringMsg?>> GetSerialNumberAsync()
Declaration:DJI.WindowsSDK.Components
Description:

Gets the serial number of the component.

Return:
async Task<ResultValue<StringMsg?>>A Task<ResultValue<StringMsg?>> object.
event IsTakingPhotoChanged
event BoolMsgChangedEventHandler IsTakingPhotoChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to check if the camera is shooting photos.

event CameraTypeChanged
event CameraTypeMsgChangedEventHandler CameraTypeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to camera type changes of aircraft.

event CameraColorRangeChanged
event CameraColorRangeMsgChangedEventHandler CameraColorRangeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to camera color changes of camera.

event IsRecordingChanged
event BoolMsgChangedEventHandler IsRecordingChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to if the camera is recording videos.

event VideoFileCompressionStandardChanged
event VideoFileCompressionStandardMsgChangedEventHandler VideoFileCompressionStandardChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to video file comression standard changes.

event PhotoRatioChanged
event PhotoRatioMsgChangedEventHandler PhotoRatioChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to photo ratio changes of the camera.

event NewlyGeneratedMediaFileChanged
event GeneratedMediaFileInfoChangedEventHandler NewlyGeneratedMediaFileChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive the information of the newly generated media file.

event ISOChanged
event CameraISOMsgChangedEventHandler ISOChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive the ISO value change of the camera.

event CameraWorkModeChanged
event CameraWorkModeMsgChangedEventHandler CameraWorkModeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive the camera work mode change.

event CameraSDCardInsertedChanged
event BoolMsgChangedEventHandler CameraSDCardInsertedChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to check if SD card is inserted to the camera.

event CameraSDCardStateChanged
event CameraSDCardStateMsgChangedEventHandler CameraSDCardStateChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's SD card state.

event CameraStoringFileChanged
event BoolMsgChangedEventHandler CameraStoringFileChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to check if the camera is storing a file.

event SDCardTotalSpaceChanged
event IntMsgChangedEventHandler SDCardTotalSpaceChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of SD card total space in MB.

event SDCardRemainSpaceChanged
event IntMsgChangedEventHandler SDCardRemainSpaceChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to changes of the SD card's remaining space in MB.

event SDCardAvailablePhotoCountChanged
event IntMsgChangedEventHandler SDCardAvailablePhotoCountChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the number of pictures that can be taken with the remaining space available on the storage.

event SDCardAvailableVideoDurationChanged
event IntMsgChangedEventHandler SDCardAvailableVideoDurationChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive the number of seconds available for recording with the remaining space available on the storage.

event RecordingTimeChanged
event IntMsgChangedEventHandler RecordingTimeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive the duration, in seconds, of the video currently being recorded by the camera.

event ExposureModeChanged
event CameraExposureModeMsgChangedEventHandler ExposureModeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's exposure mode.

event ShutterSpeedChanged
event CameraShutterSpeedMsgChangedEventHandler ShutterSpeedChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of shutter speeds.

event VideoResolutionAndFrameRateChanged
event VideoResolutionAndFrameRateChangedEventHandler VideoResolutionAndFrameRateChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's video resolution and frame rate.

event AntiFlickerChanged
event CameraAntiFlickerMsgChangedEventHandler AntiFlickerChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's anti-flicker.

event CameraColorChanged
event CameraColorMsgChangedEventHandler CameraColorChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's color.

event ExposureCompensationChanged
event CameraExposureCompensationMsgChangedEventHandler ExposureCompensationChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's exposure compensation.

event AELockEnabledChanged
event BoolMsgChangedEventHandler AELockEnabledChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's AE lock.

event CameraFocusModeChanged
event CameraFocusModeMsgChangedEventHandler CameraFocusModeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus mode.

event CameraFocusTargetChanged
event DoublePoint2DChangedEventHandler CameraFocusTargetChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus target.

event CameraFocusRingValueChanged
event IntMsgChangedEventHandler CameraFocusRingValueChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus ring value.

event CameraFocusRingMaxValueChanged
event IntMsgChangedEventHandler CameraFocusRingMaxValueChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus ring max value.

event CameraActualFocusAreaChanged
event CameraActualFocusAreaChangedEventHandler CameraActualFocusAreaChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's actual focus area. The focus target input by the user is a point. The camera will use an area around the target as reference for focusing.

event CameraFocusPointCountChanged
event IntVector2DChangedEventHandler CameraFocusPointCountChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus point counts in 2 dimensions. The focus points of a camera is finite and discrete. The focus point counts of a camera is static. This event is only used to keep the subscriber post when a camera is connected.

event ExposureMeteringPointCountChanged
event IntVector2DChangedEventHandler ExposureMeteringPointCountChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's exposure spot metering point counts in 2 dimensions. The spot metering points of a camera is finite and discrete. The point counts of a camera is static. This event is only used to keep the subscriber post when a camera is connected.

event CameraMeteringModeChanged
event CameraMeteringModeMsgChangedEventHandler CameraMeteringModeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's exposure metering mode.

event PhotoStorageFormatChanged
event PhotoStorageFormatMsgChangedEventHandler PhotoStorageFormatChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's photo file format.

event CameraFocusStateChanged
event CameraFocusStateMsgChangedEventHandler CameraFocusStateChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's focus state. Uses it to check if the auto-focusing action is successful or not.

event WhiteBalanceChanged
event CameraWhiteBalanceChangedEventHandler WhiteBalanceChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's white balance and temperature color.

event PhotoIntervalCountdownChanged
event IntMsgChangedEventHandler PhotoIntervalCountdownChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the countdown of the ongoing interval shoot. When the countdown becomes 0, the camera will take one photo and then continue on the next countdown. It is only valid when the camera is shooting interval photos.

event PhotoIntervalShootSettingsChanged
event PhotoIntervalShootSettingsChangedEventHandler PhotoIntervalShootSettingsChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the interval shoot parameters. The camera will capture a photo, wait a specified interval of time, take another photo, and continue in this manner until it has taken the required number of photos.

event ShootPhotoModeChanged
event CameraShootPhotoModeMsgChangedEventHandler ShootPhotoModeChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the camera's photo mode.

event ConnectionChanged
event BoolMsgChangedEventHandler ConnectionChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive a component's connection change.

event SerialNumberChanged
event StringMsgChangedEventHandler SerialNumberChanged
Declaration:DJI.WindowsSDK.Components
Description:

Subscribe the event to receive changes of the serial number of the component.