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
Returns the enum constant of this type with the specified name.
Link copied to clipboard
Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
val cameraXScaleType: ScaleType