AbstractBarcodeOverlay

abstract class AbstractBarcodeOverlay

Use this if you want to see barcode outline visually.

If you need to filter out use com.samsung.android.knox.smartscan.preview.filter.BarcodeFilter

See also

Functions

Link copied to clipboard
open fun clearOnPause(): Boolean

Normally, overlay will be cleared automatically when scan engine is paused. Override this method if you don't want to clear.

Link copied to clipboard
open fun iterate(barcodes: List<BarcodeInfo>)

You can iterate all barcodes. Call updatePaint method inside, if you want to change brush.

Link copied to clipboard
open fun requestClear()

Use this if you need to clear overlay manually.

Link copied to clipboard
open fun updatePaint(barcodeInfo: BarcodeInfo, brush: Brush?)

You can change brush for specific barcode.

Inheritors

Link copied to clipboard