Barcode Ar Circle Highlight
Defined in package com.scandit.datacapture.barcode.ar.ui
- BarcodeArCircleHighlightPreset
Added in version 7.1.0
The circle highlight presets.
- DOT
Added in version 7.1.0
Dot style. By default a smaller blue circle.
- ICON
Added in version 7.1.0
Icon style. By default a larger blue circle.
- BarcodeArCircleHighlight
class BarcodeArCircleHighlight : BarcodeArHighlight
Added in version 7.1.0
A type of highlight that draws circles on top of barcodes. Highlight styles are customizable. Here are some examples:
Dot preset.
Icon preset.
Icon preset with different border color.
- BarcodeArCircleHighlight()
BarcodeArCircleHighlight(@NonNull Context context, @NonNull Barcode barcode, BarcodeArCircleHighlightPreset preset)
Added in version 7.1.0
Creates a new instance with default values for the specified preset.
- update(view, barcodeLocation)
void
update(@NonNull View view, @NonNull Quadrilateral barcodeLocation)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()
@NonNull View createView()
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.
- barcode
@NonNull Barcode getBarcode()
Added in version 7.1.0
The barcode instance for the annotation.
- brush
@NonNull Brush getBrush()
void
setBrush(@NonNull Brush value)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
@Nullable ScanditIcon getIcon()
void
setIcon(@Nullable ScanditIcon value)Added in version 7.1.0
The icon used for visualizing a recognized barcode in the UI.
- size
float
getSize()void
setSize(float
value)Added in version 7.1.0
The size of the circle highlight in device-independent pixels. Minimum value is 18. If specified value is less than the minimum value, it will be coerced to the minimum value.
- isPulsing
boolean
isPulsing()void
setPulsing(boolean
value)Added in version 7.2.0
Whether the highlight is showing a pulsing animation.