Utils

object Utils

Helper methods to work with Camera

Types

Link copied to clipboard

Compares Camera.Size according to aspect ratio it represents regards to matching to some perfect desired target aspect ratio.

Functions

Link copied to clipboard

Sets focus mode to Camera.Parameters.FOCUS_MODE_AUTO if supported

Link copied to clipboard
Link copied to clipboard
fun getBestAspectPictureSize(displayOrientation: Int, width: Int, height: Int, parameters: Camera.Parameters, closeEnough: Double): Camera.Size?
Link copied to clipboard

Returns the biggest size for resulting image

Link copied to clipboard