BarcodeScannerCustomUI
A composable function that displays a barcode scanner view with the specified configuration and callbacks for barcode detection, barcode tap events, errors, and AR overlay styling.
Parameters
The modifier to be applied to the barcode scanner view.
Enable or disable barcode detection. If disabled, the camera preview is active but no barcodes will be detected.
Whether flash is toggled on or off.
The relative initial zoom level of the camera in the range (0,1), where 0 is zoomed out and 1 is zoomed in.
The range of valid camera zoom factors. See CameraZoomRange.
The camera module to be used for barcode scanning.
Lock focus distance within the minimum possible range.
Configuration for the barcode scanner. All barcodes parameters, types. etc. See BarcodeScannerConfiguration.
Configuration for the AR overlay displayed on top of the detected barcodes in the camera preview. See ArOverlayConfiguration.
Configuration properties of the finder overlay. See FinderViewConfiguration.
The camera resolution to be used for barcode scanning.
Controls whether the hardware volume buttons and the new hardware camera control button should snap or not. Available in iOS 17.2 and later.
A callback function that is invoked when barcodes are detected. It receives a list of detected BarcodeItems.
A callback function that is invoked when a barcode is tapped. It receives the tapped BarcodeItem and a boolean indicating whether the barcode is highlighted or not.
A callback function that is invoked when an error occurs during barcode scanning. It receives a Result.Failure object containing error details.