This class has the responsibility of rotating the camera, taking picture and acquiring/releasing the camera.
More...
|
| CameraView (Context context) |
|
| CameraView (Context context, AttributeSet attrs, int defStyle) |
|
| CameraView (Context context, AttributeSet attrs) |
|
Camera | getCamera () |
| Get the Camera instance in use. More...
|
|
boolean | isPreviewing () |
| Check if the camera is previewing, if so the user should see what the Camera is pointing at. More...
|
|
void | surfaceCreated (SurfaceHolder holder) |
|
void | surfaceDestroyed (SurfaceHolder holder) |
|
void | surfaceChanged (SurfaceHolder holder, int format, int w, int h) |
|
void | onPictureTaken (byte[] imageData, Camera camera) |
|
void | stopPreviewCamera () |
| Stop the previewing of the camera.
|
|
void | startPreviewCamera () |
| Start the previewing of the camera if possible.
|
|
void | releaseCamera () |
| Release camera.
|
|
void | takePicture (BeyondarPictureCallback cameraCallback, BitmapFactory.Options options) |
| Take a picture using the camera. More...
|
|
|
void | onMeasure (int widthMeasureSpec, int heightMeasureSpec) |
|
This class has the responsibility of rotating the camera, taking picture and acquiring/releasing the camera.
Camera com.beyondar.android.view.CameraView.getCamera |
( |
| ) |
|
Get the Camera instance in use.
- Returns
- The Camera object, null if it has not been acquired.
boolean com.beyondar.android.view.CameraView.isPreviewing |
( |
| ) |
|
Check if the camera is previewing, if so the user should see what the Camera is pointing at.
- Returns
- true if is previewing, false otherwise.
void com.beyondar.android.view.CameraView.takePicture |
( |
BeyondarPictureCallback |
cameraCallback, |
|
|
BitmapFactory.Options |
options |
|
) |
| |
Take a picture using the camera.
Use the BeyondarPictureCallback to get notify when the picture is ready.
- Parameters
-
cameraCallback | Camera callback. |
options | Bitmap options. |
The documentation for this class was generated from the following file:
- src/com/beyondar/android/view/CameraView.java