Package | com.distriqt.extension.camera.device |
Class | public class CameraDeviceInfo |
Inheritance | CameraDeviceInfo Object |
Information about the device's camera capture hardware.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Constructor
| CameraDeviceInfo |
Constant | Defined 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 |
cameraModes | property |
public var cameraModes:Vector.<CameraMode>
hasFlash | property |
public var hasFlash:Boolean = false
true
if this device has a flash available.
hasTorch | property |
public var hasTorch:Boolean = false
true
if this device has a flash that can be used in torch mode.
horizontalViewAngle | property |
public var horizontalViewAngle:Number = -1
The horizontal field of view for the camera sensor (in radians)
id | property |
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.
name | property |
public var name:String
A string name for this camera device, if available.
orientation | property |
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.
position | property |
public var position:String = unspecified
The position of this camera. See the POSITION_definitions in this class for the available positions.
previewModes | property |
public var previewModes:Vector.<CameraMode>
verticalViewAngle | property |
public var verticalViewAngle:Number = -1
The vertical field of view for the camera sensor (in radians)
CameraDeviceInfo | () | Constructor |
public function CameraDeviceInfo()
Constructor
POSITION_BACK | Constant |
public static const POSITION_BACK:String = back
POSITION_EXTERNAL | Constant |
public static const POSITION_EXTERNAL:String = external
POSITION_FRONT | Constant |
public static const POSITION_FRONT:String = front
POSITION_UNSPECIFIED | Constant |
public static const POSITION_UNSPECIFIED:String = unspecified