ScaleMode

Options for scaling the PreviewView within its container.

Entries

Link copied to clipboard

Scale the PreviewView, maintaining the source aspect ratio, so it fills the entire parent.

Link copied to clipboard

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

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.