Data Capture View Listener
Defined in namespace Scandit.DataCapture.Core.UI
- IDataCaptureViewListener
interface IDataCaptureViewListenerAdded in version 6.2.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.
- OnSizeChanged()
voidOnSizeChanged(intwidth,intheight,intscreenRotation)Added in version 6.2.0
Invoked when the data capture view changes size or orientation.
Rotation parameter might have value of Surface.ROTATION_0, Surface.ROTATION_90, Surface.ROTATION_180 or Surface.ROTATION_270.
Note
If you’re interested in the actual device orientation and not the one of the preview surface, check out the DeviceOrientationMapper.
- DataCaptureViewEventArgs
class DataCaptureViewEventArgs : EventArgs
Added in version 6.12.0
Provides data for the DataCaptureView.SizeChanged event.
- DataCaptureViewEventArgs()
DataCaptureViewEventArgs(
intwidth,intheight,intscreenOrientation)Added in version 6.12.0
- Width
intWidth { get; }Added in version 6.12.0
- Height
intHeight { get; }Added in version 6.12.0
- ScreenOrientation
intScreenOrientation { get; }Added in version 6.12.0