Packagecom.myflashlab.air.extensions.ar
Classpublic class CameraFocusMode
InheritanceCameraFocusMode Inheritance Object

CameraFocusMode class can be used to define which focus mode should be used by the camera.



Public Constants
 ConstantDefined By
  CONTINUOUS : int = 1
[static] The camera will continuously try to find the best focus.
CameraFocusMode
  OFF : int = 2
[static] iOS: Indicates that the focus should be locked at the lens' current position.
CameraFocusMode
  ONCE : int = 0
[static] The camera focuses once automatically and then stays at this focus until the camera is stopped or a new focus mode is set
CameraFocusMode
Constant Detail
CONTINUOUSConstant
public static const CONTINUOUS:int = 1

The camera will continuously try to find the best focus.

OFFConstant 
public static const OFF:int = 2

iOS: Indicates that the focus should be locked at the lens' current position.

Android: OFF Has different meanings based on which camera API is used. For the deprecated camera api the camera will fix the focus, which is usually at hyperfocal distance. For the camera2 API the auto-focus routine does not control the lens, the focus distance can be controlled on devices which support manual focus. If manual focus is not supported or no focus distance is set it will be set to infinity focus.

ONCEConstant 
public static const ONCE:int = 0

The camera focuses once automatically and then stays at this focus until the camera is stopped or a new focus mode is set