Camera Interface
public interface CameraInterface
Content copied to clipboard
Internal use only.
An interface which defines an API for the camera used with the Gini Capture SDK.
We use this interface with the deprecated Camera API and the new Camera2 API to publish a common API for the required camera features.
Types
TapToFocusListener
Link copied to clipboard
Functions
disableTapToFocus
Link copied to clipboard
enableTapToFocus
Link copied to clipboard
abstract void enableTapToFocus(@NonNull() View tapView, @Nullable() CameraInterface.TapToFocusListener listener)
Content copied to clipboard
getCameraRotation
Link copied to clipboard
getPictureSize
Link copied to clipboard
getPreviewSize
Link copied to clipboard
getPreviewSizeForDisplay
Link copied to clipboard
isFlashAvailable
Link copied to clipboard
abstract boolean isFlashAvailable()
Content copied to clipboard
isFlashEnabled
Link copied to clipboard
abstract boolean isFlashEnabled()
Content copied to clipboard
isPreviewRunning
Link copied to clipboard
setFlashEnabled
Link copied to clipboard
abstract void setFlashEnabled(boolean enabled)
Content copied to clipboard
setPreviewCallback
Link copied to clipboard
abstract void setPreviewCallback(@NonNull() Camera.PreviewCallback previewCallback)
Content copied to clipboard
startPreview
Link copied to clipboard
@NonNull()
Content copied to clipboard
Starts the preview using the given SurfaceHolder.
stopPreview
Link copied to clipboard
takePicture
Link copied to clipboard
Inheritors
CameraController
Link copied to clipboard