#Region Shared Files
'#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Private pnlPreview As B4XView
Private rp As RuntimePermissions
Private detector As JavaObject
Private camEx As CameraExClass
Private LastPreview As Long
Private IntervalBetweenPreviewsMs As Int = 100
Private toast As BCToast
Private QRbtnStartStop As B4XView
End Sub
'You can add more parameters here.
Public Sub Initialize
End Sub
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("CameraPage")
toast.Initialize(Root)
StopCamera
CreateDetector (Array("CODE_128", "CODE_93", "QR_CODE"))
End Sub
Sub QRbtnStartStop_Click
If Capturing = False Then
StartCamera
Else
StopCamera
End If
End Sub