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.

CameraPosition

Enumeration CameraPosition describes the camera position.

  • Android
  • Objective-C
  • Swift
@IntDef({CP_FRONT,CP_BACK})
@Retention(RetentionPolicy.CLASS)
public @interface EnumCameraPosition {
   // The back-facing camera.
   public static final int CP_BACK= 0;
   // The front-facing camera.
   public static final int CP_FRONT = 1;
}
typedef NS_ENUM(NSInteger, DSCameraPosition) {
   /**
     * The default back-facing camera. It is a wide-angle camera for general usage.
     */
    DSCameraPositionBack,
   /**
     * The front-facing camera.
     */
    DSCameraPositionFront,
   /**
     * The back-facing ultra-wide-angle camera. It is an ultra-wide-angle camera for macro-distance capturing.
     */
    DSCameraPositionBackUltraWide API_AVAILABLE(ios(13.0)),
   /**
     * A back-facing virtual camera. It is a vitural camera that can switch between the wide-angle camera and the ultra-wide-angle camera automatically.
     * Supported devices include: iPhone 13 Pro, iPhone 13 Pro Max, iPhone 14 Pro, iPhone 14 Pro Max, iPhone 15 Pro, iPhone 15 Pro Max.
     */
    DSCameraPositionBackDualWideAuto API_AVAILABLE(ios(13.0))
} NS_SWIFT_NAME(CameraPosition);
public enum CameraPosition : Int{
   /** The back-facing camera. */
   back = 0
   /** The front-facing camera. */
   front = 1
   /**
     * The back-facing ultra-wide-angle camera. It is an ultra-wide-angle camera for macro-distance capturing.
     */
   backUltraWide = 2
   /**
     * A back-facing virtual camera. It is a vitural camera that can switch between the wide-angle camera and the ultra-wide-angle camera automatically.
     * Supported devices include: iPhone 13 Pro, iPhone 13 Pro Max, iPhone 14 Pro, iPhone 14 Pro Max, iPhone 15 Pro, iPhone 15 Pro Max.
     * */
   backDualWideAuto = 3
}

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: