getPreviewOutputSize
fun <T> getPreviewOutputSize(characteristics: CameraCharacteristics, targetSize: Size, targetClass: Class<T>): Size
Returns the largest available PREVIEW size. For more information, see: https://d.android.com/reference/android/hardware/camera2/CameraDevice and https://developer.android.com/reference/android/hardware/camera2/params/StreamConfigurationMap