PreviewSurfaceView

open class PreviewSurfaceView @JvmOverloads constructor(context: Context?, attrs: AttributeSet? = null, defStyle: Int = 0) : SurfaceView

Constructors

Link copied to clipboard
constructor(context: Context?, attrs: AttributeSet? = null, defStyle: Int = 0)

Functions

Link copied to clipboard
open fun setAspectFill(isAspectFill: Boolean)

Defines whether the camera preview fills or fits the available space.

Link copied to clipboard
open fun setAspectRatio(width: Int, height: Int)