java.lang.Object | |
↳ | dji.common.camera.CameraLensState |
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. Supported only by X5 camera, X5R camera and X5S camera.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CameraLensState() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DJICameraSettingsDef.CameraLensFocusMode |
getFocusMode()
The current focus mode.
| ||||||||||
DJICameraSettingsDef.CameraLensFocusStatus |
getFocusStatus()
The focus status of the lens.
| ||||||||||
DJICameraSettingsDef.CameraLensType |
getLensType()
The installed lens type.
| ||||||||||
boolean |
isAFSwitchOn()
The AF switch on the lens is on.
| ||||||||||
boolean |
isFocusAssistantEnabledForAF()
If the focus assistant enabled for Auto focus mode.
| ||||||||||
boolean |
isFocusAssistantEnabledForMF()
If the focus assistant enabled for Manual focus mode.
| ||||||||||
boolean |
isFocusAssistantWorking()
If the focus target is zooming out.
| ||||||||||
boolean |
isLensInstalled()
If the Lens is installed on the camera or not.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The current focus mode. If the lens is not installed, the value is undefined. Please check the enum class CameraLensFocusMode in the DJICameraSettingsDef.
The focus status of the lens. If the lens is not installed, the value is undefined. Please check the enum class CameraLensFocusStatus in the DJICameraSettingsDef.
The installed lens type. If the lens is not installed, the value is undefined.
The AF switch on the lens is on. If the lens is not installed, the
value is undefined. If the property is true
, user can call
setLensFocusMode and control the focal point with the SDK.
If the focus assistant enabled for Auto focus mode. If the lens is not installed, the value is undefined.
If the focus assistant enabled for Manual focus mode. If the lens is not installed, the value is undefined.
If the focus target is zooming out. If the lens is not installed, the value is undefined.
If the Lens is installed on the camera or not.