super: UIView on iOS
A Camera object represents a physical capture device and the properties associated with that device. You use a capture device to configure the properties of the underlying hardware. A capture device also provides input data, such as audio or video.
Load() This event is called when the object becames available in the current runtime system.
NewImage(image: Image) This event is triggered when a new still picture is available.
NewVideo(videoPath: String) This event is triggered when a new recordered movie is available.
Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).
var position: CameraPosition Current position of a capture device. (read-only)
var whiteBalance: Int White balance mode.
var mirror: Int Camera mirror mode.
var flash: Int Current flash mode of a capture device. (read-only)
var recording: Bool Boolean value to indicate if the camera is recording a video at the current moment. (read-only)
var videoEnabled: Bool Check if video mode is enabled in the capture device.
var cropImageAsSeen: Bool If set to true then captured Image is cropped usign the exact View size.
var zoomingEnabled: Bool Boolean value to indicate if zooming is enabled.
var fixOrientationAfterCapture: Bool Boolean value to indicate if the image must be rasterized according to device orientation.
var useDeviceOrientation: Bool Boolean value to indicate if device orientation should be taken into account.
var isFlashAvailable: Bool Checks if flash is available.
var isTorchAvailable: Bool Checks if torch is available.
var isFrontCameraAvailable: Bool Checks if the front camera is available.
var isRearCameraAvailable: Bool Checks if the rear camera is available.
var autoFocusOnTap: Bool Boolean value to indicate if zooming is enabled.
var autoExposureOnTap: Bool Boolean value to indicate if zooming is enabled.
var maxScale: Float Maximum scaling factor.
func capture() Initiates a still image capture action.
func togglePosition() Toggle the position of a capture device.
func toggleFlashMode(): CameraFlashMode Toggle the flash mode of the capture device. Returns the new flash mode.
func startRecording() Start recording a video.
func stopRecording() Stop recording a video.
func animate(duration: Float, delay: Float, options: AnimationOption, closure: Closure, completion: Closure) Animate changes to one or more views using the specified duration, delay, options and completion handler.
func setFocus() Force focus to be set to the selected control. For TextField and TextView that means force Keyboard to appear.
func clearFocus() Clear focus from selected control