Deprecation warning

Please note that this is outdated documentation for an older release of the Scandit Barcode Scanner SDK.

We are deprecating the 5.x API on all platforms (except Linux). Release 5.19 in April 2021 will be our final. Applications running 5.x will continue to work, and we will continue to release critical bug fixes and security patches only, for one year. We encourage you to migrate to 6.x and take advantage of our latest / advanced features and improved performance.

You'll find the updated documentation at: Data Capture SDK Documentation for Xamarin.Android and Data Capture SDK Documentation for Xamarin.iOS

PropertyObserver Interface Reference

Public Member Functions

void PropertyChanged (BarcodePicker picker, NSString property, NSObject value)
 

Detailed Description

Defines the protocol for an observer of property changes.

This API is experimental. There are no API stability guarantees at this point and the functionality might disappear or change in future releases.

Since
4.14.0

Member Function Documentation

◆ PropertyChanged()

void PropertyChanged ( BarcodePicker  picker,
NSString  property,
NSObject  value 
)

Method invoked when a property changed to a new value.

Parameters
pickerThe barcode picker whose property changed.
propertyThe property that changed. The property can be any of "torchOn", "recognitionMode", "relativeZoom", "switchCamera".
valueThe new value of the property.

The property is invoked in the calling thread, so make sure to move any UI work to the main thread.