PresetCameraStrategy

Created by dodo on 26/10/15.

Constructors

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

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)