Barcode Check View
Defined in namespace Scandit.DataCapture.Barcode.Check.UI
- HighlightForBarcodeTappedEventArgs
class HighlightForBarcodeTappedEventArgs : EventArgs
Added in version 7.2.0
Provides data for the BarcodeCheckView.HighlightForBarcodeTapped event.
- BarcodeCheck
BarcodeCheck BarcodeCheck { get; }
Added in version 7.2.0
- Highlight
IBarcodeCheckHighlight Highlight { get; }
Added in version 7.2.0
- BarcodeCheckView
class BarcodeCheckView : FrameLayout
Added in version 7.2.0
BarcodeCheck comes with a ready-to-use UI that allows highlighting barcodes and displaying additional information over them. The BarcodeCheckView integrates with any app in just a few lines of code.
- Create()
static BarcodeCheckView Create(ViewGroup parentView, BarcodeCheck barcodeCheck, DataCaptureContext dataCaptureContext, BarcodeCheckViewSettings settings, CameraSettings cameraSettings)
Added in version 7.2.0
Creates a new BarcodeCheckView with the provided mode, viewSettings and default camera settings from BarcodeCheck.RecommendedCameraSettings.
- HighlightProvider
IBarcodeCheckHighlightProvider HighlightProvider { get;set; }
Added in version 7.2.0
Sets the provider which supplies highlight information for barcodes in the view. If null, a default provider is used, which returns a predefined highlight for each barcode.
- AnnotationProvider
IBarcodeCheckAnnotationProvider AnnotationProvider { get;set; }
Added in version 7.2.0
Sets the provider which supplies annotation information for barcodes in the view. If null, no annotation will be displayed for any barcode.
- ShouldShowTorchControl
bool
ShouldShowTorchControl { get;set; }Added in version 7.2.0
Indicates whether the torch control button should be shown to the user.
Default is false.
- TorchControlPosition
Anchor TorchControlPosition { get;set; }
Added in version 7.2.0
Updates the position of the torch control button.
Default is Anchor.TopLeft.
- ShouldShowZoomControl
bool
ShouldShowZoomControl { get;set; }Added in version 7.2.0
Indicates whether the zoom control button should be shown to the user.
- ZoomControlPosition
Anchor ZoomControlPosition { get;set; }
Added in version 7.2.0
Updates the position of the zoom control button.
Default is Anchor.BottomRight.
- ShouldShowCameraSwitchControl
bool
ShouldShowCameraSwitchControl { get;set; }Added in version 7.2.0
Indicates whether the camera switch control button should be shown to the user.
- CameraSwitchControlPosition
Anchor CameraSwitchControlPosition { get;set; }
Added in version 7.2.0
Updates the position of the camera switch control button.
Default is Anchor.TopRight.
- Start()
void
Start()Added in version 7.2.0
Starts the scanning process.
- Stop()
void
Stop()Added in version 7.2.0
Stops the scanning process.
- Pause()
void
Pause()Added in version 7.2.0
Pauses the scanning process.
- Reset()
void
Reset()Added in version 7.2.0
Removes all current highlights and annotations.
- OnPause()
void
OnPause()Added in version 7.2.0
Function to call on Fragment/Activity onPause callback. This will set the BarcodeCheckView’s lifecycle state to Paused. Scanning only happens when the BarcodeCheckView is in Resumed state. You have to call this for the correct functioning of the BarcodeCheckView.
protected override void OnPause() { base.OnPause(); BarcodeCheckView.OnPause(); }
When developing on MAUI, override the OnDisappearing method and call OnPause from within it.
protected override void OnDisappearing() { base.OnDisappearing(); BarcodeCheckView.OnPause(); }
- OnResume()
void
OnResume()Added in version 7.2.0
Function to call on Fragment/Activity onResume callback. This will set the BarcodeCheckView’s lifecycle state to Resumed. Scanning only happens when the BarcodeCheckView is in Resumed state. You have to call this for the correct functioning of the BarcodeCheckView.
protected override void OnResume() { base.OnResume(); BarcodeCheckView.OnResume(); }
When developing on MAUI, override the OnAppearing method and call OnResume from within it.
protected override void OnAppearing() { base.OnAppearing(); BarcodeCheckView.OnResume(); }
- HighlightForBarcodeTapped
event EventHandler<HighlightForBarcodeTappedEventArgs> HighlightForBarcodeTapped
Added in version 7.2.0
Occurs when a barcode highlight is tapped in the view.