Packagecom.distriqt.extension.camera.device
Classpublic class CameraDeviceInfo
InheritanceCameraDeviceInfo Inheritance Object

Information about the device's camera capture hardware.



Public Properties
 PropertyDefined By
  cameraModes : Vector.<CameraMode>
CameraDeviceInfo
  hasFlash : Boolean = false
true if this device has a flash available.
CameraDeviceInfo
  hasTorch : Boolean = false
true if this device has a flash that can be used in torch mode.
CameraDeviceInfo
  horizontalViewAngle : Number = -1
The horizontal field of view for the camera sensor (in radians)
CameraDeviceInfo
  id : String
The string id representing this camera device.
CameraDeviceInfo
  name : String
A string name for this camera device, if available.
CameraDeviceInfo
  orientation : int = 0
The orientation of the camera image.
CameraDeviceInfo
  position : String = unspecified
The position of this camera.
CameraDeviceInfo
  previewModes : Vector.<CameraMode>
CameraDeviceInfo
  verticalViewAngle : Number = -1
The vertical field of view for the camera sensor (in radians)
CameraDeviceInfo
Public Methods
 MethodDefined By
  
Constructor
CameraDeviceInfo
Public Constants
 ConstantDefined By
  POSITION_BACK : String = back
[static]
CameraDeviceInfo
  POSITION_EXTERNAL : String = external
[static]
CameraDeviceInfo
  POSITION_FRONT : String = front
[static]
CameraDeviceInfo
  POSITION_UNSPECIFIED : String = unspecified
[static]
CameraDeviceInfo
Property Detail
cameraModesproperty
public var cameraModes:Vector.<CameraMode>

hasFlashproperty 
public var hasFlash:Boolean = false

true if this device has a flash available.

hasTorchproperty 
public var hasTorch:Boolean = false

true if this device has a flash that can be used in torch mode.

horizontalViewAngleproperty 
public var horizontalViewAngle:Number = -1

The horizontal field of view for the camera sensor (in radians)

idproperty 
public var id:String

The string id representing this camera device. This id should be used to identify this device in other calls in the camera extension.

nameproperty 
public var name:String

A string name for this camera device, if available.

orientationproperty 
public var orientation:int = 0

The orientation of the camera image. The value is the angle that the camera image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It should be 0, 90, 180, or 270.

For example, suppose a device has a naturally tall screen. The back-facing camera sensor is mounted in landscape. You are looking at the screen. If the top side of the camera sensor is aligned with the right edge of the screen in natural orientation, the value should be 90. If the top side of a front-facing camera sensor is aligned with the right of the screen, the value should be 270.

positionproperty 
public var position:String = unspecified

The position of this camera. See the POSITION_definitions in this class for the available positions.

previewModesproperty 
public var previewModes:Vector.<CameraMode>

verticalViewAngleproperty 
public var verticalViewAngle:Number = -1

The vertical field of view for the camera sensor (in radians)

Constructor Detail
CameraDeviceInfo()Constructor
public function CameraDeviceInfo()

Constructor

Constant Detail
POSITION_BACKConstant
public static const POSITION_BACK:String = back

POSITION_EXTERNALConstant 
public static const POSITION_EXTERNAL:String = external

POSITION_FRONTConstant 
public static const POSITION_FRONT:String = front

POSITION_UNSPECIFIEDConstant 
public static const POSITION_UNSPECIFIED:String = unspecified