CameraView.ScaleType

public static final enum CameraView.ScaleType
extends Enum<CameraView.ScaleType>

java.lang.Object
   ↳ java.lang.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

CameraView.ScaleType  CENTER_CROP

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

CameraView.ScaleType  CENTER_INSIDE

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

Public methods

static CameraView.ScaleType valueOf(String name)
static final ScaleType[] values()

Inherited methods

Enum values

CENTER_CROP

public static final CameraView.ScaleType CENTER_CROP

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

public static final CameraView.ScaleType CENTER_INSIDE

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

Public methods

valueOf

public static CameraView.ScaleType valueOf (String name)

Parameters
name String

Returns
CameraView.ScaleType

values

public static final ScaleType[] values ()

Returns
ScaleType[]