Packagecom.distriqt.extension.camera.device
Classpublic class CameraMode
InheritanceCameraMode Inheritance Object

This class represents a 'mode of operation' for the camera. Basically you use this class to set the required resolution of image captures from the camera.



Public Properties
 PropertyDefined By
  height : int = 0
CameraMode
  mode : String = preset:low
CameraMode
  type : String
CameraMode
  width : int = 0
CameraMode
Public Methods
 MethodDefined By
  
CameraMode(mode:String, width:int = 0, height:int = 0)
Constructor
CameraMode
  
fromObject(data:Object):CameraMode
[static] Internal helper for constructing modes
CameraMode
  
setPreset(mode:String):void
CameraMode
Public Constants
 ConstantDefined By
  CUSTOM : String = custom
[static] The custom mode allows you to specify a width and height and the extension will identify the closest possible resolution.
CameraMode
  PRESET_1280x720 : String = preset:1280x720
[static] 720p HD
CameraMode
  PRESET_1920x1080 : String = preset:1920x1080
[static] 1080 HD
CameraMode
  PRESET_352x288 : String = preset:352x288
[static]
CameraMode
  PRESET_3840x2160 : String = preset:3840x2160
[static]
CameraMode
  PRESET_640x480 : String = preset:640x480
[static] VGA
CameraMode
  PRESET_HIGH : String = preset:high
[static] Highest recording quality.
CameraMode
  PRESET_LOW : String = preset:low
[static] Suitable for 3G sharing.
CameraMode
  PRESET_MEDIUM : String = preset:medium
[static] Suitable for WiFi sharing.
CameraMode
  PRESET_PHOTO : String = preset:photo
[static] Full photo resolution.
CameraMode
  TYPE_PICTURE : String = picture
[static]
CameraMode
  TYPE_VIDEO : String = video
[static]
CameraMode
Property Detail
heightproperty
public var height:int = 0

modeproperty 
public var mode:String = preset:low

typeproperty 
public var type:String

widthproperty 
public var width:int = 0

Constructor Detail
CameraMode()Constructor
public function CameraMode(mode:String, width:int = 0, height:int = 0)

Constructor

Parameters
mode:String (default = NaN)
 
width:int (default = 0)
 
height:int (default = 0)
Method Detail
fromObject()method
public static function fromObject(data:Object):CameraMode

Internal helper for constructing modes

Parameters

data:Object

Returns
CameraMode
setPreset()method 
public function setPreset(mode:String):void

Parameters

mode:String

Constant Detail
CUSTOMConstant
public static const CUSTOM:String = custom

The custom mode allows you to specify a width and height and the extension will identify the closest possible resolution.

PRESET_1280x720Constant 
public static const PRESET_1280x720:String = preset:1280x720

720p HD

PRESET_1920x1080Constant 
public static const PRESET_1920x1080:String = preset:1920x1080

1080 HD

PRESET_352x288Constant 
public static const PRESET_352x288:String = preset:352x288

PRESET_3840x2160Constant 
public static const PRESET_3840x2160:String = preset:3840x2160

PRESET_640x480Constant 
public static const PRESET_640x480:String = preset:640x480

VGA

PRESET_HIGHConstant 
public static const PRESET_HIGH:String = preset:high

Highest recording quality. This varies per device. This mode will always be available

PRESET_LOWConstant 
public static const PRESET_LOW:String = preset:low

Suitable for 3G sharing. The actual values may change. This mode will always be available

PRESET_MEDIUMConstant 
public static const PRESET_MEDIUM:String = preset:medium

Suitable for WiFi sharing. The actual values may change. This mode will always be available

PRESET_PHOTOConstant 
public static const PRESET_PHOTO:String = preset:photo

Full photo resolution. This is not supported for video / preview output.

TYPE_PICTUREConstant 
public static const TYPE_PICTURE:String = picture

TYPE_VIDEOConstant 
public static const TYPE_VIDEO:String = video