getPreviewSize

abstract fun <T> getPreviewSize(targetSize: Size, targetClass: Class<T>): Size

Gets the preview size from the target size.

Return

the preview size

Parameters

targetSize

the target size

targetClass

the output target class. Only used for CameraSource.