Data Capture View Listener
Defined under the namespace Scandit.Datacapture.Core.Ui
- DataCaptureViewListener
interface DataCaptureViewListenerAdded in version 6.13.0
Listener for observing the data capture view. This listener is typically used when you want to react to orientation and size changes, e.g. to adjust view finder and scan area parameters.
- didChangeSize(view, size, orientation)
didChangeSize?: (view: DataCaptureView, size: Size, orientation: Orientation) =>
voidAdded in version 6.13.0
Invoked when the data capture view changes size or orientation.
- willChangeScanAreaMargins(view, oldMargins, newMargins)
willChangeScanAreaMargins?: (view: DataCaptureView, oldMargins: MarginsWithUnit, newMargins: MarginsWithUnit) =>
voidAdded in version 8.4.0
Invoked before the scan area margins of the data capture view are changed.
- didChangeScanAreaMargins(view, margins)
didChangeScanAreaMargins?: (view: DataCaptureView, margins: MarginsWithUnit) =>
voidAdded in version 8.4.0
Invoked after the scan area margins of the data capture view are changed.