camera-scan
androidJvm
camera-scan
/
com.king.camera.scan
/
ICameraControl
ICamera
Control
interface
ICameraControl
相机控制:主要包括调节焦距和闪光灯控制
Author
Jenly
Follow me
Inheritors
CameraScan
Members
Functions
enable
Torch
Link copied to clipboard
abstract
fun
enableTorch
(
torch
:
Boolean
)
设置闪光灯(手电筒)是否开启
has
Flash
Unit
Link copied to clipboard
abstract
fun
hasFlashUnit
(
)
:
Boolean
是否支持闪光灯
is
Torch
Enabled
Link copied to clipboard
abstract
fun
isTorchEnabled
(
)
:
Boolean
闪光灯(手电筒)是否开启
line
Zoom
In
Link copied to clipboard
abstract
fun
lineZoomIn
(
)
线性放大
line
Zoom
Out
Link copied to clipboard
abstract
fun
lineZoomOut
(
)
线性缩小
line
Zoom
To
Link copied to clipboard
abstract
fun
lineZoomTo
(
@
FloatRange
(
from
=
0.0
,
to
=
1.0
)
linearZoom
:
Float
)
线性缩放到指定比例
zoom
In
Link copied to clipboard
abstract
fun
zoomIn
(
)
放大
zoom
Out
Link copied to clipboard
abstract
fun
zoomOut
(
)
缩小
zoom
To
Link copied to clipboard
abstract
fun
zoomTo
(
ratio
:
Float
)
缩放到指定比例