class FocusState
@EXClassNullAway class FocusState
Package: dji.common.camera
Description:
This class contains information about the lens' current state, including lens type, focus status, focus mode, focus assistant state, and Auto Focus (AF) switch state.
Class Members:
method isLensMounted
Description:
true
if lens is installed on the camera.
Return:
method getFocusStatus
FocusStatus getFocusStatus ()
Description:
The current focus status of the lens. If the lens is not installed, the value is undefined.
Return:
method isAFSwitchOn
Description:
true
if the lens Auto Focus (AF) switch is on. If the lens is not installed, the value is undefined. If true
, setFocusMode
can be used to control the focal point.
Return:
method getFocusMode
Description:
The current focus mode. If the lens is not installed, the value is undefined.
Return:
method isFocusAssistantEnabledForAF
boolean isFocusAssistantEnabledForAF ()
Description:
true
if the focus assistant is enabled for Auto focus mode. If the lens is not installed, the value is undefined.
Return:
method isFocusAssistantWorking
boolean isFocusAssistantWorking ()
Description:
true
if the focus target is zooming out. If the lens is not installed, the value is undefined.
Return:
Sensor Cleaning State
method
method getSensorCleaningState
SensorCleaningState getSensorCleaningState ()
Package: dji.common.camera
Description:
Get the sensor cleaning state.
Return:
Target Focal Length
method
method getTargetFocalLength
int getTargetFocalLength ()
Package: dji.common.camera
Description:
The focal length that user wants to set. Supported by Zenmuse H20 Series. The unit is millimeter.
Return:
int A "targetFocusLength" int value.