Android.Hardware.Camera Members

The members of Android.Hardware.Camera are listed below.

See Also: Inherited members from Java.Lang.Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
ActionNewPicturestring. Broadcast Action: A new picture is taken by the camera, and the entry of the picture has been added to the media store.
const
ActionNewVideostring. Broadcast Action: A new video is recorded by the camera, and the entry of the video has been added to the media store.

Public Properties

[read-only]
static
NumberOfCamerasint. Returns the number of physical cameras available on this device.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddCallbackBuffer(byte[])
Adds a pre-allocated buffer to the preview callback buffer queue.
AutoFocus(Camera.IAutoFocusCallback)
Starts camera auto-focus and registers a callback function to run when the camera is focused.
CancelAutoFocus()
Cancels any auto-focus function in progress.
EnableShutterSound(bool) : bool
static
GetCameraInfo(int, Camera.CameraInfo)
Returns the information about a particular camera.
GetParameters() : Camera.Parameters
Returns the current settings for this Camera service.
Lock()
Re-locks the camera to prevent other processes from accessing it.
static
Open() : Camera
Creates a new Camera object to access the first back-facing camera on the device.
static
Open(int) : Camera
Creates a new Camera object to access a particular hardware camera.
Reconnect()
Reconnects to the camera service after another process used it.
Release()
Disconnects and releases the Camera object resources.
SetAutoFocusMoveCallback(Camera.IAutoFocusMoveCallback)
Sets camera auto-focus move callback.
SetDisplayOrientation(int)
Set the clockwise rotation of preview display in degrees.
SetErrorCallback(Camera.IErrorCallback)
Registers a callback to be invoked when an error occurs.
SetFaceDetectionListener(Camera.IFaceDetectionListener)
Registers a listener to be notified about the faces detected in the preview frame.
SetOneShotPreviewCallback(Camera.IPreviewCallback)
SetParameters(Camera.Parameters)
Changes the settings for this Camera service.
SetPreviewCallback(Camera.IPreviewCallback)
SetPreviewCallbackWithBuffer(Camera.IPreviewCallback)
SetPreviewDisplay(Android.Views.ISurfaceHolder)
Sets the Android.Views.Surface to be used for live preview.
SetPreviewTexture(Android.Graphics.SurfaceTexture)
Sets the Android.Graphics.SurfaceTexture to be used for live preview.
SetZoomChangeListener(Camera.IOnZoomChangeListener)
Registers a listener to be notified when the zoom value is updated by the camera driver during smooth zoom.
StartFaceDetection()
Starts the face detection.
StartPreview()
Starts capturing and drawing preview frames to the screen.
StartSmoothZoom(int)
Zooms to the requested value smoothly.
StopFaceDetection()
Stops the face detection.
StopPreview()
Stops capturing and drawing preview frames to the surface, and resets the camera for a future call to Camera.StartPreview.
StopSmoothZoom()
Stops the smooth zoom.
TakePicture(Camera.IShutterCallback, Camera.IPictureCallback, Camera.IPictureCallback)
Equivalent to takePicture(shutter, raw, null, jpeg).
TakePicture(Camera.IShutterCallback, Camera.IPictureCallback, Camera.IPictureCallback, Camera.IPictureCallback)
Triggers an asynchronous image capture.
Unlock()
Unlocks the camera to allow another process to access it.

Public Events

FaceDetectionDocumentation for this section has not yet been entered.
ZoomChangeDocumentation for this section has not yet been entered.