DJI Mobile SDK Documentation

      class DJICameraFocusState

      @interface DJICameraFocusState : NSObject
      Header:DJICameraFocusState.h
      Inherits From:NSObject
      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:
      Lens
      property
      property isLensMounted
      @property(nonatomic, readonly) BOOL isLensMounted
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamIsLensMounted
      Description:

      YES if lens is installed on the camera.

      Focus Status
      property
      property focusStatus
      @property(nonatomic, readonly) DJICameraFocusStatus focusStatus
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamLensFocusStatus
      Description:

      The current focus status of the lens. If the lens is not installed, the value is undefined.

      See Also:

      DJICameraFocusStatus

      MF/AF Focus Mode
      property
      property isAFSwitchOn
      @property(nonatomic, readonly) BOOL isAFSwitchOn
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamIsLensAFSwitchOn
      Description:

      YES if the lens Auto Focus (AF) switch is on. If the lens is not installed, the value is undefined. If YES, setFocusMode:withCompletion can be used to control the focal point.

      property
      property focusMode
      @property(nonatomic, readonly) DJICameraFocusMode focusMode
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamFocusMode
      Description:

      The current focus mode. If the lens is not installed, the value is undefined.

      See Also:

      DJICameraFocusMode

      Focus Assistant
      property
      property isFocusAssistantEnabledForMF
      @property(nonatomic, readonly) BOOL isFocusAssistantEnabledForMF
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamFocusAssistantSettings
      Description:

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

      property isFocusAssistantEnabledForAF
      @property(nonatomic, readonly) BOOL isFocusAssistantEnabledForAF
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamFocusAssistantSettings
      Description:

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

      property isFocusAssistantWorking
      @property(nonatomic, readonly) BOOL isFocusAssistantWorking
      Header:DJICameraFocusState.h
      SDK Key:DJICameraKey.DJICameraParamIsFocusAssistantWorking
      Description:

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

      Sensor Cleaning State
      property
      property sensorCleaningState
      @property(nonatomic, readonly) DJICameraSensorCleaningState sensorCleaningState
      Header:DJICameraFocusState.h
      Description:

      The sensor cleaning state.

      See Also:

      DJICameraSensorCleaningState

      Target Focal Length
      property
      property targetFocalLength
      @property(nonatomic, readonly) float targetFocalLength
      Header:DJICameraFocusState.h
      Description:

      The focal length that user wants to set. Supported by Zenmuse H20 Series. The unit is millimeter.