Barcode AR

Defined in package com.scandit.datacapture.barcode.ar

BarcodeAr
class BarcodeAr

Added in version 8.6.0

Capture mode that implements Barcode AR.

forContext(dataCaptureContext, settings)
fun BarcodeAr.forContext(dataCaptureContext: DataCaptureContext,
        settings: BarcodeArSettings): BarcodeAr

Added in version 8.6.0

Constructs a new BarcodeAr instance with the provided settings.

feedback
var feedback: BarcodeArFeedback

Added in version 8.6.0

Instance of BarcodeArFeedback that is used by the barcode scanner to notify users about Ar events.

The default instance of the Feedback will have both sound and vibration enabled. A default beep sound will be used for the sound.

recommendedCameraSettings()
fun BarcodeAr.recommendedCameraSettings(): CameraSettings

Added in version 8.6.0

Returns the recommended camera settings for use with Barcode AR.

dataCaptureContext
val dataCaptureContext: DataCaptureContext?

Added in version 8.6.0

Implemented from DataCaptureMode. See DataCaptureMode.dataCaptureContext.

applySettings(settings)
fun applySettings(settings: BarcodeArSettings)

Added in version 8.6.0

Applies the provided BarcodeArSettings to BarcodeAr.

addListener(listener)
fun addListener(listener: BarcodeArListener)

Added in version 8.6.0

Adds a listener to receive Barcode AR events.

In case the same listener is already observing this instance, calling this method will not add the listener again.

removeListener(listener)
fun removeListener(listener: BarcodeArListener)

Added in version 8.6.0

Removes a previously added listener from this BarcodeAr instance.

In case the listener is not currently observing this instance, calling this method has no effect.

setBarcodeFilter(filter)
fun setBarcodeFilter(filter: BarcodeArFilter?)

Added in version 8.6.0

Sets a filter that determines which barcodes should be visible in the BarcodeArSession.

Pass null to remove the filter and show all barcodes.

See BarcodeArFilter for details on implementing a custom filter.