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
-
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 has changed its state.
newState will be either 0 (torch is unavailable) or 1 (torch is off) or 2 (torch is on).
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