CameraControl


public interface CameraControl


The CameraControl provides various asynchronous operations like zoom, focus and metering which affects output of all UseCases currently bound to that camera.

The application can retrieve the CameraControl instance via getCameraControl. CameraControl is ready to start operations immediately after Camera is retrieved and UseCases are bound to that camera. When all UseCases are unbound, or when camera is closing or closed because lifecycle onStop happens, the CameraControl will reject all operations.

Each method Of CameraControl returns a ListenableFuture which apps can use to check the asynchronous result. If the operation is not allowed in current state, the returned ListenableFuture will fail immediately with CameraControl.OperationCanceledException.

Summary

Nested types

An exception representing a failure that the operation is canceled which might be caused by a new value is set or camera is closed.

Public methods

abstract @NonNull ListenableFuture<Void>

Cancels current FocusMeteringAction and clears AF/AE/AWB regions.

default @NonNull ListenableFuture<Void>
enableLowLightBoostAsync(boolean lowLightBoost)

Enables low-light boost mode.

abstract @NonNull ListenableFuture<Void>
enableTorch(boolean torch)

Enable the torch or disable the torch.

abstract @NonNull ListenableFuture<<a href="https://devel