CameraPreviewScaleType

enum CameraPreviewScaleType

Entries

Link copied to clipboard

Scale the preview, maintaining the source aspect ratio, so it is entirely contained within the fragment layout. The background area not covered by the preview stream will be black or the background of the fragment layout.

Link copied to clipboard

Scale the preview, maintaining the source aspect ratio, so it fills the entire fragment layout. This may cause the preview to be cropped if the camera preview aspect ratio does not match that of its container fragment layout.

Functions

Link copied to clipboard
open fun valueOf(name: String): Any
Link copied to clipboard
open fun values(): Array<Any>

Properties

Link copied to clipboard
val cameraXScaleType: ScaleType