Barcode AR Rectangle Highlight
Defined in package com.scandit.datacapture.barcode.ar.ui
- BarcodeArRectangleHighlight
class BarcodeArRectangleHighlight : BarcodeArHighlight
Added in version 7.1.0
A type of highlight that draws rectangles on top of barcodes. Highlight styles are customizable. Here are some examples:
Default style.
Customized brush and icon.
- BarcodeArRectangleHighlight()
BarcodeArRectangleHighlight(context: Context, barcode: Barcode)
Added in version 7.1.0
Creates a new instance with default values.
- update(view, barcodeLocation)
fun update(view: View, barcodeLocation: Quadrilateral)
Added in version 7.3.0
Called to update the view with barcode location. Called from the main thread. This method should not be called directly, it will be invoked automatically when needed.
- createView()
fun createView(): View
Added in version 7.3.0
Called once to get the view that will be updated with barcode location in update(). Called from the main thread.
- brush
var brush: Brush
Added in version 7.1.0
The brush used for visualizing a recognized barcode in the UI. By default, the brush has a blue fill color with 45% alpha, blue stroke and a stroke width of 2.
- icon
var icon: ScanditIcon?
Added in version 7.1.0
The icon used for visualizing a recognized barcode in the UI. Is null by default.