The Android Developer Challenge is back! Submit your idea before December 2.

ScaleType

class ScaleType
kotlin.Any
   ↳ kotlin.Enum<androidx.camera.view.CameraView.ScaleType>
   ↳ androidx.camera.view.CameraView.ScaleType

Options for scaling the bounds of the view finder to the bounds of this view.

Summary

Enum values

Scale the view finder, maintaining the source aspect ratio, so the view finder fills the entire view.

Scale the view finder, maintaining the source aspect ratio, so the view finder is entirely contained within the view.

Enum values

CENTER_CROP

enum val CENTER_CROP : CameraView.ScaleType

Scale the view finder, maintaining the source aspect ratio, so the view finder fills the entire view. This will cause the view finder to crop the source image if the camera aspect ratio does not match the view aspect ratio.

CENTER_INSIDE

enum val CENTER_INSIDE : CameraView.ScaleType

Scale the view finder, maintaining the source aspect ratio, so the view finder is entirely contained within the view.