Resource Base
Table of contents

This documentation is deprecated. It applies only to legacy version 2.x of Capture Vision and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

FocusMode

Enumeration FocusMode describes the focus mode.

  • Android
  • Objective-C
  • Swift
@IntDef({FM_LOCKED,FM_CONTINUOUS_AUTO})
@Retention(RetentionPolicy.CLASS)
public @interface EnumFocusMode {
   // Lock the focal length.
   public static final int FM_LOCKED = 1;
   // Keep continuous auto-focus.
   public static final int FM_CONTINUOUS_AUTO = 2;
}
typedef NS_ENUM(NSInteger, DSFocusMode){
   /**
    * Lock the focal length.
    */
   FocusModeLocked           =   1,
   /**
    * Enable the continuous auto-focus.
    */
   FocusModeContinuousAuto     =   2
};
public enum FocusMode : Int{
   /**
    * Lock the focal length.
    */
   locked           =   1
   /**
    * Enable the continuous auto-focus.
    */
   continuousAuto     =   2
}

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: