LQCameraStrategy

Default camera strategy for LQ devices

Author

cerovec

Constructors

Link copied to clipboard
constructor(@NonNull camera: Camera, minAllowedVideoResolution: Int, @NonNull context: Context)

Functions

Link copied to clipboard
Link copied to clipboard
@Nullable
open fun getOptimalPreviewSize(surfaceWidth: Int, surfaceHeight: Int, @NonNull cameraType: CameraType): Camera.Size
Method returns optimal size for camera preview
Link copied to clipboard
fun isPreviewSizeTooSmall(@NonNull cameraType: CameraType): Boolean
Method checks if the minimal preview size is to small to run photopay
Link copied to clipboard
open fun log()
Method logs the strategy to logcat
Link copied to clipboard
open fun setCameraInitDelay(cameraInitDelay: Int)
Link copied to clipboard
@NonNull
open fun toString(): String