PreviewSurfaceView

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet)
constructor(context: Context, attrs: AttributeSet, defStyle: Int)

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)