Barcode AR Custom Annotation
Defined in package com.scandit.datacapture.barcode.ar.ui
- BarcodeArCustomAnnotationUpdateHandler
interface BarcodeArCustomAnnotationUpdateHandlerAdded in version 8.6.0
Repositions a BarcodeArCustomAnnotation’s view as its barcode moves.
- onUpdate(barcodeLocation, highlightViewLocation, view)
fun onUpdate(barcodeLocation: Quadrilateral, highlightViewLocation: Quadrilateral?, view: NativeView)
Added in version 8.6.0
Called on every frame the annotation is visible.
barcodeLocationandhighlightViewLocationare in the view’s coordinate space.
- BarcodeArCustomAnnotation
class BarcodeArCustomAnnotation : BarcodeArAnnotation
Added in version 8.6.0
A custom annotation that can be used to attach your own component to a scanned barcode.
- BarcodeArCustomAnnotation(view)
BarcodeArCustomAnnotation(view: NativeView)
Added in version 8.6.0
Creates a custom annotation backed by the application-supplied native
view.
- view
val view: NativeView
Added in version 8.6.0
The application-supplied view shown for the barcode.
- annotationTrigger
var annotationTrigger: BarcodeArAnnotationTrigger
Added in version 8.6.0
The trigger that causes the annotation to be presented. The default is BarcodeArAnnotationTrigger.HIGHLIGHT_TAP_AND_BARCODE_SCAN.
- updateHandler
var updateHandler: BarcodeArCustomAnnotationUpdateHandler?
Added in version 8.6.0
Optional positioning hook. When
null, the SDK centers the view on the barcode.