Example usage for Java android.hardware Camera fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addCallbackBuffer(byte[] callbackBuffer) Adds a pre-allocated buffer to the preview callback buffer queue. |
void | autoFocus(AutoFocusCallback cb) Starts camera auto-focus and registers a callback function to run when the camera is focused. |
void | cancelAutoFocus() Cancels any auto-focus function in progress. |
void | getCameraInfo(int cameraId, CameraInfo cameraInfo) Returns the information about a particular camera. |
Class> | getClass() Returns the runtime class of this Object . |
int | getNumberOfCameras() Returns the number of physical cameras available on this device. |
Parameters | getParameters() Returns the current settings for this Camera service. |
Camera | open(int cameraId) Creates a new Camera object to access a particular hardware camera. |
Camera | open() Creates a new Camera object to access the first back-facing camera on the device. |
void | release() Disconnects and releases the Camera object resources. |
void | setDisplayOrientation(int degrees) Set the clockwise rotation of preview display in degrees. |
void | setParameters(Parameters params) Changes the settings for this Camera service. |
void | setPreviewCallback(PreviewCallback cb) Installs a callback to be invoked for every preview frame in addition to displaying them on the screen. |
void | setPreviewCallbackWithBuffer(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. |
void | setPreviewDisplay(SurfaceHolder holder) Sets the Surface to be used for live preview. |
void | setPreviewTexture(SurfaceTexture surfaceTexture) Sets the SurfaceTexture to be used for live preview. |
void | startPreview() Starts capturing and drawing preview frames to the screen. |
void | stopPreview() Stops capturing and drawing preview frames to the surface, and resets the camera for a future call to #startPreview() . |
void | takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback jpeg) Equivalent to takePicture(Shutter, raw, null, jpeg). |
void | takePicture(ShutterCallback shutter, PictureCallback raw, PictureCallback postview, PictureCallback jpeg) Triggers an asynchronous image capture. |
String | toString() Returns a string representation of the object. |