CameraStrategy

abstract class CameraStrategy

Strategy for using camera

Author

cerovec

Inheritors

Constructors

Link copied to clipboard
constructor(@NonNull camera: Camera, minAllowedVideoResolution: Int, @NonNull context: Context)
Creates strategy for given camera.

Types

Link copied to clipboard
open class PreviewSize
Helper class to decide size

Functions

Link copied to clipboard
Link copied to clipboard
@Nullable
abstract 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
abstract fun log()
Method logs the strategy to logcat
Link copied to clipboard
open fun setCameraInitDelay(cameraInitDelay: Int)