CameraController

public class CameraController implements CameraInterface

Internal use only.

Constructors

CameraController
Link copied to clipboard
void CameraController(@NonNull() Activity activity)

Functions

close
Link copied to clipboard
void close()
Closes the camera.
disableTapToFocus
Link copied to clipboard
void disableTapToFocus()
Disables tap-to-focus.
enableTapToFocus
Link copied to clipboard
void enableTapToFocus(@Nullable() CameraInterface.TapToFocusListener listener)
Enables tap-to-focus using the given view by adding touch handling to it and transforming the touch point coordinates to the camera sensor's coordinate system.
focus
Link copied to clipboard
CompletableFuture<Booleanfocus()
Start a focus run.
getPreviewView
Link copied to clipboard
View getPreviewView(@NonNull() Context context)
The view which shows the camera preview.
isFlashAvailable
Link copied to clipboard
boolean isFlashAvailable()
isFlashEnabled
Link copied to clipboard
boolean isFlashEnabled()
isPreviewRunning
Link copied to clipboard
boolean isPreviewRunning()
Get the state of the preview.
open
Link copied to clipboard
CompletableFuture<Voidopen()
Opens the first back-facing camera.
setFlashEnabled
Link copied to clipboard
void setFlashEnabled(boolean enabled)
setPreviewCallback
Link copied to clipboard
void setPreviewCallback(@Nullable() CameraInterface.PreviewCallback previewCallback)
Set a callback to recieve preview images from the camera.
startPreview
Link copied to clipboard
CompletableFuture<VoidstartPreview()
Starts the camera preview.
stopPreview
Link copied to clipboard
void stopPreview()
Stops the camera preview.
takePicture
Link copied to clipboard
CompletableFuture<PhototakePicture()
Take a picture with the camera.