Barcode Find View
Defined in package com.scandit.datacapture.barcode.find.ui
- BarcodeFindViewUiListener
interface BarcodeFindViewUiListenerAdded in version 8.6.0
- onFinishButtonTapped(foundItems)
fun onFinishButtonTapped(foundItems: Set<BarcodeFindItem>)
Added in version 8.6.0
Callback method that can be used to define an action that should be performed when the finish button is tapped from the view. The foundItems parameter contains all the items found since the start of the searching process. Called from the main thread.
- BarcodeFindView
class BarcodeFindViewAdded in version 8.6.0
BarcodeFind comes with a ready-to-use search UI that uses augmented reality overlays to highlight items that match predefined criteria. The BarcodeFindView integrates with any app in just a few lines of code.
- onResume()
fun onResume()Added in version 8.6.0
Function to call on Fragment/Activity onResume callback. You have to call this for the correct functioning of the BarcodeFindView.
- onPause()
fun onPause()Added in version 8.6.0
Function to call on Fragment/Activity onPause callback. You have to call this for the correct functioning of the BarcodeFindView.
- stopSearching()
fun stopSearching()Added in version 8.6.0
Method to call for stopping the mode. For instance, it can be called when the view controller containing BarcodeFindView is about to disappear (i.e., UIViewController’s viewWillDisappear).
- startSearching()
fun startSearching()Added in version 8.6.0
Starts the searching process. You can call this method if you want to trigger the searching process without any user interaction.
- pauseSearching()
fun pauseSearching()Added in version 8.6.0
Pauses the searching process. You can call this method if you want to trigger pausing the searching process without any user interaction.
- uiListener
var uiListener: BarcodeFindViewUiListener?
Added in version 8.6.0
Sets the listener which is called whenever the finish button is tapped from the view.
- shouldShowUserGuidanceView
var shouldShowUserGuidanceView:
BooleanAdded in version 8.6.0
Indicates whether guidance should be shown to the user.
Default is true.
- shouldShowHints
var shouldShowHints:
BooleanAdded in version 8.6.0
Indicates whether hints should be shown to the user.
Default is true.
- shouldShowCarousel
var shouldShowCarousel:
BooleanAdded in version 8.6.0
Indicates whether the item carousel should be shown to the user.
Default is true.
- shouldShowPauseButton
var shouldShowPauseButton:
BooleanAdded in version 8.6.0
Indicates whether the pause button should be shown to the user.
Default is true.
- shouldShowFinishButton
var shouldShowFinishButton:
BooleanAdded in version 8.6.0
Indicates whether the finish button should be shown to the user.
Default is true.
- shouldShowProgressBar
var shouldShowProgressBar:
BooleanAdded in version 8.6.0
Indicates whether the progress bar should be shown to the user.
Default is false.
- shouldShowTorchControl
var shouldShowTorchControl:
BooleanAdded in version 8.6.0
Indicates whether the torch control button should be shown to the user.
Default is false.
- torchControlPosition
var torchControlPosition: Anchor
Added in version 8.6.0
Updates the position of the torch control button.
Only Anchor.TOP_LEFT, Anchor.TOP_CENTER, Anchor.TOP_RIGHT and Anchor.BOTTOM_LEFT are supported.
Any other value will default to Anchor.TOP_LEFT.
- shouldShowZoomControl
var shouldShowZoomControl:
BooleanAdded in version 8.6.0
Indicates whether the zoom control should be shown to the user, allowing them to switch between the normal and ultra-wide lenses.
Default is false.
Note
The zoom control requires a device with an ultra-wide camera. On devices without an ultra-wide camera, setting this property to true has no effect.
- logoStyle
var logoStyle: LogoStyle
Added in version 8.6.0
The style of the logo, either the extended “Scanning By Scandit” or the minimal “Scandit”.
Default is LogoStyle.EXTENDED.
- logoAnchor
var logoAnchor: Anchor
Added in version 8.6.0
The anchor point used to position the Scandit logo.
Default is Anchor.BOTTOM_RIGHT.
- textForCollapseCardsButton
var textForCollapseCardsButton: String?
Added in version 8.6.0
Overrides the default text displayed in the button for collapsing the item carousel.
Default is null.
- textForAllItemsFoundSuccessfullyHint
var textForAllItemsFoundSuccessfullyHint: String?
Added in version 8.6.0
Overrides the default text displayed in the green confirmation view shown when all items have been found.
Default is null.
- textForPointAtBarcodesToSearchHint
var textForPointAtBarcodesToSearchHint: String?
Added in version 8.6.0
Overrides the default text for the “Point at barcodes to search” hint.
Default is null.
- textForMoveCloserToBarcodesHint
var textForMoveCloserToBarcodesHint: String?
Added in version 8.6.0
Overrides the default text for the “Move closer” hint.
Default is null.
- textForTapShutterToPauseScreenHint
var textForTapShutterToPauseScreenHint: String?
Added in version 8.6.0
Overrides the default text for “Tap shutter to pause” hint.
Default is null.
- textForTapShutterToResumeSearchHint
var textForTapShutterToResumeSearchHint: String?
Added in version 8.6.0
Overrides the default text for “Tap shutter to resume” hint.
Default is null.
- textForItemListUpdatedHint
var textForItemListUpdatedHint: String?
Added in version 8.6.0
Overrides the default text displayed in the confirmation view shown when the item list has been updated.
Default is null.
- textForItemListUpdatedWhenPausedHint
var textForItemListUpdatedWhenPausedHint: String?
Added in version 8.6.0
Overrides the default text displayed in the confirmation view shown when the item list has been updated and search is paused.
Default is null.
- cameraStateOnStop
var cameraStateOnStop: FrameSourceState
Added in version 8.6.0
Specifies the desired camera state when BarcodeFind stops searching. This property allows optimization of camera transitions when switching between different capture modes.
On Flutter, Capacitor, Cordova and React Native this property is only effective on iOS; it is ignored on Android.
For example, setting this to FrameSourceState.STANDBY instead of the default FrameSourceState.OFF can improve camera startup times when transitioning to another mode (such as SparkScan) that uses standby state, as it avoids the On→Off→Standby transition sequence.
Default is FrameSourceState.OFF.
- hardwareTriggerSupported
val BarcodeFindView.hardwareTriggerSupported: Boolean
Added in version 8.6.0
Returns whether the device supports listening for hardware button events. This is true for devices with api >= 28.
- setProperty(name, value)
fun setProperty(name: String, value: Any)
Added in version 8.6.0
Sets a custom property on this barcode find view. This function is for internal use. Any features and functionality offered through this method can and will vanish without public notice from one version to the next.