Camera deprecated

Class of android.hardware · Camera.java · Android's reference

public class Camera

The old camera API on a device with no camera: there is none to open.

Nested types

Fields

public static final String ACTION_NEW_PICTURE = "android.hardware.action.NEW_PICTURE" source
public static final String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO" source
public static final int CAMERA_ERROR_UNKNOWN = 1 source
public static final int CAMERA_ERROR_EVICTED = 2 source
public static final int CAMERA_ERROR_SERVER_DIED = 100 source

Methods

public static int getNumberOfCameras() source
public static void getCameraInfo(int cameraId, CameraInfo cameraInfo) source
public static Camera open(int cameraId) source

No camera service has a camera to connect to.

public static Camera open() source

Null: the device has no back camera.

public final void release() empty body source
public final void setPreviewDisplay(SurfaceHolder holder) throws java.io.IOException empty body source
public final void startPreview() empty body source
public final void stopPreview() empty body source
public final void setOneShotPreviewCallback(PreviewCallback cb) empty body source
public final void setPreviewCallback(PreviewCallback cb) empty body source
public final void autoFocus(AutoFocusCallback cb) empty body source
public final void cancelAutoFocus() empty body source
public final void setDisplayOrientation(int degrees) empty body source
public void setParameters(Parameters params) empty body source
public Parameters getParameters() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.