app
androidJvm
app
/
openfoodfacts.github.scrachx.openfood.features.scan
/
ZXCameraView
ZXCamera
View
androidJvm
class
ZXCameraView
(
activity
:
AppCompatActivity
,
viewStub
:
ViewStub
)
:
CameraView
<
DecoratedBarcodeView
>
Content copied to clipboard
Constructors
Functions
Properties
Constructors
ZXCamera
View
Link copied to clipboard
androidJvm
fun
ZXCameraView
(
activity
:
AppCompatActivity
,
viewStub
:
ViewStub
)
Content copied to clipboard
Functions
attach
Link copied to clipboard
androidJvm
open
override
fun
attach
(
cameraState
:
Int
,
flashActive
:
Boolean
,
autoFocusActive
:
Boolean
)
Content copied to clipboard
detach
Link copied to clipboard
androidJvm
@
CallSuper
open
fun
detach
(
)
Content copied to clipboard
on
Resume
Link copied to clipboard
androidJvm
open
override
fun
onResume
(
)
Content copied to clipboard
play
Beep
Sound
Link copied to clipboard
androidJvm
open
override
fun
playBeepSound
(
)
Content copied to clipboard
start
Camera
Preview
Link copied to clipboard
androidJvm
open
override
fun
startCameraPreview
(
)
Content copied to clipboard
stop
Camera
Preview
Link copied to clipboard
androidJvm
open
override
fun
stopCameraPreview
(
)
Content copied to clipboard
toggle
Camera
Link copied to clipboard
androidJvm
open
override
fun
toggleCamera
(
requestedCameraId
:
Int
)
Content copied to clipboard
update
Flash
Setting
Link copied to clipboard
androidJvm
open
override
fun
updateFlashSetting
(
flashActive
:
Boolean
)
Content copied to clipboard
update
Focus
Mode
Setting
Link copied to clipboard
androidJvm
open
override
fun
updateFocusModeSetting
(
autoFocusActive
:
Boolean
)
Content copied to clipboard
update
Workflow
State
Link copied to clipboard
androidJvm
open
override
fun
updateWorkflowState
(
state
:
WorkflowState
)
Content copied to clipboard
Properties
barcode
Scanned
Callback
Link copied to clipboard
androidJvm
var
barcodeScannedCallback
:
(
String
?
)
->
Unit
?
Content copied to clipboard
on
Overlay
Click
Listener
Link copied to clipboard
androidJvm
var
onOverlayClickListener
:
(
)
->
Unit
?
Content copied to clipboard