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

PropertyChangeListener Interface Reference

Public Member Functions

void OnPropertyChange (int name, int newState)
 

Public Attributes

int TORCH
 
int SWITCH_CAMERA
 
int RECOGNITION_MODE
 
int RELATIVE_ZOOM
 

Detailed Description

Interface for a state change listener.

The onPropertyChange method is invoked whenever the state of the barcode picker changes, e.g. when the torch is turned on.

This interface is experimental. No API stability guarantees apply at this point.

Since
4.14

Member Function Documentation

void OnPropertyChange ( int  name,
int  newState 
)
Parameters
nameThe name of the property that changed.
newStatethe new state of the property. The meaning depends on the property. See the individual property documentation for details.

Member Data Documentation

int TORCH

The torch did change it's state.

newState will be either 1 (on), or 0 (off).

int SWITCH_CAMERA

The camera has been switched from front to back-facing, or from back to front-facing.

int RECOGNITION_MODE

The recognition mode has been changed.

int RELATIVE_ZOOM

The relative zoom factor times 1000.