Optional
cornerCorner radius in pixels for rectangular elements such as viewfinder and camera selector.
The allowed range of the corner radius is 0 to 8 pixels.
0
Optional
customOverride the STRICH logo displayed in the bottom-right corner with a custom image.
The image is supplied as an absolute URL or inline as a data URL. The image should have a transparent background (WebP or PNG format). The recommended size is 140x30 pixels.
This is a capability that is only available as a paid add-on for Enterprise licenses. Please note that attempting to hide or replace the STRICH logo by other means is a violation of the License Agreement.
Optional
detectionColor to use for drawing a border around the area of detected barcodes. Must be specified in rgb() format, with the color components given as integers with no separating whitespace. The border will become transparent when the detection becomes stale.
Optional
detectionThe border width in pixels to use for drawing a border around the area of detected barcodes.
The allowed range is 0 to 4 pixels. Values outside the range are clamped.
0
Optional
detectionColor to use for filling area of detected barcodes. Must be specified in rgb() format, with the color components given as integers with no separating whitespace. The fill will become transparent when the detection becomes stale.
Optional
filterFilter cameras returned by the browser.
If set to true, only cameras that are deemed appropriate for barcode scanning will be offered in the camera selector.
true
Optional
focusIndicate if single-tapping the overlay should attempt to trigger autofocus.
Triggering autofocus is currently only available on Android devices.
true
Optional
maskColor to use for de-emphasizing the area around the viewfinder.
The color will be used to create a mask around the viewfinder/region of interest to aid the user in focusing the camera on the barcode.
A semi-translucent dark color works best, e.g. rgba(0,0,0,0.5) would use a semi-translucent black.
undefined
Optional
primaryColor to use for drawing UI elements such as the viewfinder and camera selector. Must be specified in rgb() format, with the color components given as integers with no separating whitespace.
rgb(255,255,255)
Optional
showIndicate if the camera selector should be shown in the overlay.
true
Optional
showIndicate if the overlay should draw the bounding boxes of detected barcodes on top of the camera preview.
true
Optional
showIndicate if the flashlight toggle should be shown in the overlay.
Flashlight functionality is not supported in some browsers.
true
Optional
showIndicate if a horizontal line should be drawn to aid in positioning 1D barcodes.
true
Optional
targetingColor to use for drawing the horizontal targeting line when a barcode was detected. Must be specified in rgb() format, with the color components given as integers with no separating whitespace.
rgb(255,0,0)
Optional
viewfinderBorder width in pixels of the viewfinder, the rectangle around the region of interest.
The allowed range is 1 to 20 pixels. Values outside the range are clamped.
1
Optional
viewfinderCorner radius in pixels of the viewfinder, the rectangle around the region of interest.
This property applies only to the viewfinder and overrides the OverlayConfiguration.cornerRadius property.
The allowed range of the corner radius is 0 to 20 pixels.
0
Generated using TypeDoc
Overlay configuration