| java.lang.Object | ||
| ↳ | android.app.Fragment | |
| ↳ | com.vuzix.sdk.barcode.ScannerFragment | |
ScannerFragment is an easy way to add barcode scanning functionality to your app. To use, follow these steps:
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ScannerFragment.Listener | Interface for those who want to be notified when a barcode is identified. | ||||||||||
| ScannerFragment.Listener2 | |||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | ARG_BARCODE2_TYPES | A string array argument for specifying barcode types to scan for. | |||||||||
| String | ARG_BARCODE_TYPES | This constant is deprecated. As of Scanner 2 | |||||||||
| String | ARG_LICENSE_KEY | This constant is deprecated. As of Scanner 2 | |||||||||
| String | ARG_SCANNING_RECT | A parcelable argument for specifying the scanning rect. | |||||||||
| String | ARG_ZOOM_IN_MODE | A boolean argument for barcode run in zoom mode. | |||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
As of Scanner 2
| |||||||||||
Register a callback to be invoked when a barcode is located or an error occurs.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
A string array argument for specifying barcode types to scan for. Each string should be the name() of a BarcodeType2. For example:
arguments.putStringArray(ScannerFragment.ARG_BARCODE2_TYPES, new String[] {BarcodeType2.QR.name(), BarcodeType2.QR_MICRO.name()});
This constant is deprecated.
As of Scanner 2
A string array argument for specifying barcode types to scan for. Each string should be the name() of a BarcodeType. For example:
arguments.putStringArray(ScannerFragment.ARG_BARCODE_TYPES, new String[] {BarcodeType.QR.name(), BarcodeType.QR_MICRO.name()});
This constant is deprecated.
As of Scanner 2
A string argument for specifying a custom license key.
A parcelable argument for specifying the scanning rect. For example:
arguments.putParcelable(ScannerFragment.ARG_SCANNING_RECT, new ScanningRect(.5f, .5f));
A boolean argument for barcode run in zoom mode. For example:
arguments.putBoolean(ScannerFragment.ARG_ZOOM_MODE, true);
| Parameters | |
|---|---|
savedInstanceState |
Bundle |
| Parameters | |
|---|---|
inflater |
LayoutInflater |
container |
ViewGroup |
savedInstanceState |
Bundle |
| Returns | |
|---|---|
View |
|
| Parameters | |
|---|---|
surface |
SurfaceTexture |
width |
int |
height |
int |
| Parameters | |
|---|---|
surface |
SurfaceTexture |
| Returns | |
|---|---|
boolean |
|
| Parameters | |
|---|---|
surface |
SurfaceTexture |
width |
int |
height |
int |
| Parameters | |
|---|---|
surface |
SurfaceTexture |
This method is deprecated.
As of Scanner 2
Register a callback to be invoked when a barcode is located or an error occurs. To remove yourself as a listener, set the listener to null.
| Parameters | |
|---|---|
listener |
ScannerFragment.Listener: a ScannerFragment.Listener
|
Register a callback to be invoked when a barcode is located or an error occurs. To remove yourself as a listener, set the listener to null.
| Parameters | |
|---|---|
listener |
ScannerFragment.Listener2: a ScannerFragment.Listener2
|