public class

CameraLensState

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

Class Overview

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.

Summary

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

Public Constructors

public CameraLensState ()

Public Methods

public DJICameraSettingsDef.CameraLensFocusMode getFocusMode ()

The current focus mode. If the lens is not installed, the value is undefined. Please check the enum class CameraLensFocusMode in the DJICameraSettingsDef.

public DJICameraSettingsDef.CameraLensFocusStatus getFocusStatus ()

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.

public DJICameraSettingsDef.CameraLensType getLensType ()

The installed lens type. If the lens is not installed, the value is undefined.

public boolean isAFSwitchOn ()

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.

public boolean isFocusAssistantEnabledForAF ()

If the focus assistant enabled for Auto focus mode. If the lens is not installed, the value is undefined.

public boolean isFocusAssistantEnabledForMF ()

If the focus assistant enabled for Manual focus mode. If the lens is not installed, the value is undefined.

public boolean isFocusAssistantWorking ()

If the focus target is zooming out. If the lens is not installed, the value is undefined.

public boolean isLensInstalled ()

If the Lens is installed on the camera or not.