public final class PhotoCaptureOptions
- Object
- PhotoCaptureOptions
Per-capture options for
CameraSession#takePhoto(PhotoCaptureOptions).
A builder; chain calls fluently.Constructors
public PhotoCaptureOptions() |
Methods
public PhotoCaptureOptions size(int width, int height) | Requested photo dimensions. |
public PhotoCaptureOptions jpegQuality(int q) | JPEG encoding quality 1-100. |
public PhotoCaptureOptions filePath(String path) | Override the destination file path (FileSystemStorage path). |
public int getWidth() | Requested capture width, or 0 to use the camera default. |
public int getHeight() | Requested capture height, or 0 to use the camera default. |
public int getJpegQuality() | JPEG encoding quality 1-100. |
public String getFilePath() | Configured destination FileSystemStorage path, or null if the framework should pick a temp path. |
Inherited methods
Constructor details
PhotoCaptureOptions
public PhotoCaptureOptions()Method details
size
public PhotoCaptureOptions size(int width, int height)Requested photo dimensions.
0 (the default for either) means use the
camera’s default photo size.jpegQuality
public PhotoCaptureOptions jpegQuality(int q)JPEG encoding quality 1-100. Default 90.
filePath
public PhotoCaptureOptions filePath(String path)Override the destination file path (FileSystemStorage path).
When unset, the framework saves to a temp file under the app home.
getWidth
public int getWidth()Requested capture width, or
0 to use the camera default.getHeight
public int getHeight()Requested capture height, or
0 to use the camera default.getJpegQuality
public int getJpegQuality()JPEG encoding quality 1-100.
getFilePath
public String getFilePath()Configured destination FileSystemStorage path, or
null if the
framework should pick a temp path.