toggle menu
Genius Scan SDK
6.1.0
androidJvm
switch theme
search in API
Genius Scan SDK
/
com.geniusscansdk.camera
/
PreviewSurfaceView
Preview
Surface
View
open
class
PreviewSurfaceView
@
JvmOverloads
constructor
(
context
:
Context
?
,
attrs
:
AttributeSet
?
=
null
,
defStyle
:
Int
=
0
)
:
SurfaceView
Members
Constructors
Preview
Surface
View
Link copied to clipboard
@
JvmOverloads
constructor
(
context
:
Context
?
,
attrs
:
AttributeSet
?
=
null
,
defStyle
:
Int
=
0
)
Functions
set
Aspect
Fill
Link copied to clipboard
open
fun
setAspectFill
(
isAspectFill
:
Boolean
)
Defines whether the camera preview fills or fits the available space.
set
Aspect
Ratio
Link copied to clipboard
open
fun
setAspectRatio
(
width
:
Int
,
height
:
Int
)