Instantly share code, notes, and snippets.

Embed
What would you like to do?
val characteristics: CameraCharacteristics = ...
val targetClass: Class<T> = ... // e.g. SurfaceView::class.java
val sizes = characteristics.get(
CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP)
.getOutputSizes(targetClass)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment