CameraPreviewScaleType

Camera preview scale type.

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. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

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: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard