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 Android
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
-
name The name of the property that changed. newState the 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.
The documentation for this interface was generated from the following file:
- PropertyChangeListener.java