New Update: AR Enhancements and Scanning Improvements
We’re excited to introduce a new update that expands Barkoder’s capabilities with Augmented Reality (AR) functionality, enhanced scanning controls, and performance improvements. This release gives developers more flexibility in customizing the scanning experience while maintaining fast and reliable barcode and QR code detection.
Augmented Reality (AR) Support
This update adds full AR mode support, enabling a more interactive and visually guided scanning experience. Developers can now fine-tune how detected locations, headers, and transitions appear on screen, creating clearer feedback and improved usability in real-world scanning scenarios.
New AR Configuration Methods
The following new methods allow precise control over AR visuals and behavior:
-
Location styling and behavior:
-
setSelectedLocationColor
-
setNonSelectedLocationLineColor
-
setSelectedLocationLineWidth
-
setNonSelectedLocationLineWidth
-
setLocationType
-
setLocationTransitionSpeed
-
Header customization:
-
setHeaderHeight
-
setHeaderShowMode
-
setHeaderTextColorSelected
-
setHeaderTextColorNonSelected
-
Interaction and behavior:
-
setResultDisappearanceDelayMs
-
setDoubleTapToFreezeEnabled
-
setARMode
Each of these settings also includes a corresponding getter method, making it easy to read and manage AR configuration dynamically at runtime.
New AR Constants
To support the new AR functionality, the following constants have been added:
-
BarkoderARMode
-
BarkoderARHeaderShowMode
-
BarkoderARLocationType
These constants help standardize AR behavior and simplify configuration across different use cases.
New Scanning Capabilities
Two new methods have been introduced to improve flexibility and data handling:
-
scanFrame – Enables scanning directly from individual frames, ideal for advanced workflows and custom camera integrations.
-
getSADLImage – A helper method for working with SADL images extracted from SADL-parsed JSON strings.
Improvements and Updates
Several existing methods have been enhanced to improve performance and usability:
-
setDuplicatesDelayMs now supports disabling duplicate results indefinitely by using -1 as the argument value.
-
scanFromLocalFileSystem has been improved for better reliability and performance.
-
setMaximumResultsCount is now restricted when AR mode is enabled, ensuring consistent behavior and optimal AR performance.
Native Library Update
This release also updates the native library to version 1.7.0.2, bringing additional stability, performance improvements, and compatibility enhancements.