public class Camera
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Camera.CameraBuilder
Camera builder declaration
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IMAGE_JPEG |
static java.lang.String |
IMAGE_JPG |
static java.lang.String |
IMAGE_PNG |
static int |
REQUEST_TAKE_PHOTO
public variables to be used in the builder
|
| Constructor and Description |
|---|
Camera(android.app.Activity activity) |
| Modifier and Type | Method and Description |
|---|---|
Camera.CameraBuilder |
builder() |
void |
deleteImage()
Deletes the saved camera image
|
android.graphics.Bitmap |
getCameraBitmap() |
java.lang.String |
getCameraBitmapPath() |
android.graphics.Bitmap |
resizeAndGetCameraBitmap(int imageHeight) |
java.lang.String |
resizeAndGetCameraBitmapPath(int imageHeight) |
void |
takePicture()
Initiate the existing camera apps
|
public static final int REQUEST_TAKE_PHOTO
public static final java.lang.String IMAGE_JPG
public static final java.lang.String IMAGE_JPEG
public static final java.lang.String IMAGE_PNG
public Camera(android.app.Activity activity)
activity - to return the camera resultspublic Camera.CameraBuilder builder()
public void takePicture()
throws java.lang.NullPointerException
java.lang.NullPointerExceptionpublic java.lang.String getCameraBitmapPath()
public android.graphics.Bitmap getCameraBitmap()
public java.lang.String resizeAndGetCameraBitmapPath(int imageHeight)
imageHeight - public android.graphics.Bitmap resizeAndGetCameraBitmap(int imageHeight)
imageHeight - public void deleteImage()