Java android.hardware Camera fields, constructors, methods, implement or subclass

Example usage for Java android.hardware Camera fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.hardware Camera.

The text is from its open source code.

Method

voidaddCallbackBuffer(byte[] callbackBuffer)
Adds a pre-allocated buffer to the preview callback buffer queue.
voidautoFocus(AutoFocusCallback cb)
Starts camera auto-focus and registers a callback function to run when the camera is focused.
voidcancelAutoFocus()
Cancels any auto-focus function in progress.
voidgetCameraInfo(int cameraId, CameraInfo cameraInfo)
Returns the information about a particular camera.
ClassgetClass()
Returns the runtime class of this Object .
intgetNumberOfCameras()
Returns the number of physical cameras available on this device.
ParametersgetParameters()
Returns the current settings for this Camera service.
Cameraopen(int cameraId)
Creates a new Camera object to access a particular hardware camera.
Cameraopen()
Creates a new Camera object to access the first back-facing camera on the device.
voidrelease()
Disconnects and releases the Camera object resources.
voidsetDisplayOrientation(int degrees)
Set the clockwise rotation of preview display in degrees.
voidsetParameters(Parameters params)
Changes the settings for this Camera service.
voidsetPreviewCallback(PreviewCallback cb)

Installs a callback to be invoked for every preview frame in addition to displaying them on the screen.

voidsetPreviewCallbackWithBuffer(PreviewCallback cb)

Installs a callback to be invoked for every preview frame, using buffers supplied with #addCallbackBuffer(byte[]) , in addition to displaying them on the screen.

voidsetPreviewDisplay(SurfaceHolder holder)
Sets the Surface to be used for live preview.
voidsetPreviewTexture(SurfaceTexture surfaceTexture)
Sets the SurfaceTexture to be used for live preview.
voidstartPreview()
Starts capturing and drawing preview frames to the screen.
voidstopPreview()
Stops capturing and drawing preview frames to the surface, and resets the camera for a future call to #startPreview() .
voidtakePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback jpeg)
Equivalent to
takePicture(Shutter, raw, null, jpeg)
.
voidtakePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback postview, PictureCallback jpeg)
Triggers an asynchronous image capture.
StringtoString()
Returns a string representation of the object.