DJICameraLensState
@interface DJICameraLensState : NSObject
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.
-
Determines if the Lens is installed on the camera.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL isLensInstalled;
-
The installed lens type. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) DJILensType lensType;
-
The Auto Focus (AF) switch on the lens is on. If the lens is not installed, the value is undefined. If the property is YES, the user can call
setLensFocusMode
and control the focal point with the SDK.Declaration
Objective-C
@property (readonly, nonatomic) BOOL isAFSwitchOn;
-
The current focus mode. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) DJICameraLensFocusMode focusMode;
-
The focus status of the lens. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) DJICameraLensFocusStatus focusStatus;
-
If the focus assistant enabled for Manual focus mode. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL isFocusAssistantEnabledForMF;
-
If the focus assistant enabled for Auto focus mode. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL isFocusAssistantEnabledForAF;
-
If the focus target is zooming out. If the lens is not installed, the value is undefined.
Declaration
Objective-C
@property (readonly, nonatomic) BOOL isFocusAssistantWorking;