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.