void |
Removes all effects.
|
void |
Removes a previously set analyzer.
|
@NonNull ListenableFuture<Void> |
Enable the torch or disable the torch.
|
@Nullable CameraControl |
Gets the CameraControl of the currently attached camera.
|
@Nullable CameraInfo |
Gets the CameraInfo of the currently attached camera.
|
@NonNull CameraSelector |
Gets the CameraSelector.
|
@Nullable Executor |
Gets the default executor for ImageAnalysis background tasks.
|
int |
Returns the mode with which images are acquired.
|
int |
Gets the image queue depth of ImageAnalysis.
|
int |
Gets the output image format for ImageAnalysis.
|
@Nullable ResolutionSelector |
Returns the ResolutionSelector for ImageAnalysis.
|
@Nullable CameraController.OutputSize |
This method is deprecated.
Use getImageAnalysisResolutionSelector instead.
|
int |
Gets the flash mode for ImageCapture.
|
@Nullable Executor |
Gets the default executor for ImageCapture IO tasks.
|
int |
Returns the image capture mode.
|
@Nullable ResolutionSelector |
Returns the ResolutionSelector for ImageCapture.
|
@Nullable CameraController.OutputSize |
This method is deprecated.
Use getImageCaptureResolutionSelector instead.
|
@NonNull ListenableFuture<Void> |
Gets a ListenableFuture that completes when camera initialization completes.
|
@Nullable ResolutionSelector |
Returns the ResolutionSelector for Preview.
|
@Nullable CameraController.OutputSize |
This method is deprecated.
Use getPreviewResolutionSelector instead.
|
@NonNull LiveData<TapToFocusInfo> |
Returns a LiveData with a TapToFocusInfo containing the latest focus state and corresponding tap position.
|
@NonNull LiveData<Integer> |
This method is deprecated.
Use getTapToFocusInfoState instead.
|
@NonNull LiveData<Integer> |
Returns a LiveData of current TorchState.
|
@NonNull DynamicRange |
Gets the DynamicRange for video capture.
|
int |
Gets the mirror mode for video capture.
|
@NonNull QualitySelector |
Returns the QualitySelector for VIDEO_CAPTURE.
|
@NonNull Range<Integer> |
Gets the target frame rate in frames per second for video capture.
|
@NonNull LiveData<ZoomState> |
Returns a LiveData of ZoomState.
|
boolean |
Checks if the given CameraSelector can be resolved to a camera.
|
boolean |
Checks if ImageAnalysis is enabled.
|
boolean |
Checks if ImageCapture is enabled.
|
boolean |
Returns whether pinch-to-zoom is enabled.
|
boolean |
Returns whether there is an in-progress video recording.
|
boolean |
Returns whether tap-to-focus is enabled.
|
boolean |
Checks if video capture is enabled.
|
void |
Sets the CameraSelector.
|
void |
Sets CameraEffect.
|
void |
Enables or disables use cases.
|
void |
Sets an analyzer to receive and analyze images.
|
void |
Sets the executor that will be used for ImageAnalysis background tasks.
|
void |
Sets the backpressure strategy to apply to the image producer to deal with scenarios where images may be produced faster than they can be analyzed.
|
void |
Sets the image queue depth of ImageAnalysis.
|
void |
Sets the output image format for ImageAnalysis.
|
void |
Sets the ResolutionSelector for ImageAnalysis.
|
void |
This method is deprecated.
Use setImageAnalysisResolutionSelector instead.
|
void |
Sets the flash mode for ImageCapture.
|
void |
Sets the default executor that will be used for ImageCapture IO tasks.
|
void |
Sets the image capture mode.
|
void |
Sets the ResolutionSelector for ImageCapture.
|
void |
This method is deprecated.
Use setImageCaptureResolutionSelector instead.
|
@NonNull ListenableFuture<Void> |
Sets current zoom by a linear zoom value ranging from 0f to 1.0f.
|
void |
Enables/disables pinch-to-zoom.
|
void |
Sets the ResolutionSelector for Preview.
|
void |
This method is deprecated.
Use setPreviewResolutionSelector instead.
|
void |
Sets the auto-cancel duration for tap-to-focus events.
|
void |
Enables/disables tap-to-focus.
|
void |
Sets the DynamicRange for video capture.
|
void |
Sets the mirror mode for video capture.
|
void |
Sets the QualitySelector for VIDEO_CAPTURE.
|
void |
Sets the target frame rate range in frames per second for video capture.
|
@NonNull ListenableFuture<Void> |
Sets current zoom by ratio.
|
@NonNull Recording |
Takes a video to a given file descriptor.
|
@NonNull Recording |
Takes a video to a given file.
|
@NonNull Recording |
Takes a video to MediaStore.
|
void |
Captures a new still image for in memory access.
|
void |
Captures a new still image and saves to a file along with application specified metadata.
|