BarcodeManager Class |
BarcodeManager
To decode bar codes with this class, use the following steps:
BarcodeManager()
;
startDecode()
. Your registered StartListener/ReadListener/TimeoutListener
will be called when a successful decode occurs or if the
configured timeout expires, etc;
stopDecode()
to
end the decode session;
release()
to
release all registered
StartListener/ReadListener/TimeoutListener/StopListener.
Configuration persistance: All the configuration changes
done using the BarcodeManager
are natively not
persistent to the device reboot, they are kept only in the current
device session. If you want to persist your changes in flash and
keep them across a system reboot the only existing way is to call
explicitally
commitProperties()
. Beware that the decoding system configuration is restored from
flash every time the decoding service restart and so any
configuration not stored persistently could be lost if the service
is killed (and consequently restarted) by the Android OS. It is a
rare event that could happens for many reasons (low resources,
execution exception, not responding service, etc...), the decoding
system is usually restored but any configuration not stored
persistently could be lost.
The BarcodeManager type exposes the following members.
Name | Description | |
---|---|---|
![]() | BarcodeManager | Initializes a new instance of the BarcodeManager class |
![]() | BarcodeManager | Initializes a new instance of the BarcodeManager class |
Name | Description | |
---|---|---|
![]() | CurrentInputDevice | To be added. |
![]() | CustomOcrItems | To be added. |
![]() | IsInitialized | Checks if the Scanner Service is correctly initialized. |
![]() | JniPeerMembers | To be added. |
![]() | KeycodeBarcode | To be added. |
![]() | SupportedInputDevices | To be added. |
![]() | ThresholdClass | To be added. |
![]() | ThresholdType | To be added. |
Name | Description | |
---|---|---|
![]() | AddDeinitListener | Registers a
DeinitListener
to be notified when a event of Scanner de-initiliazion
is triggered. |
![]() | AddFrameCaptureListener | Registers a
FrameCaptureListener
to be notified when a frame capture event is triggered. |
![]() | AddFrameSaveListener | Registers a
FrameSaveListener
to be notified when a frame save event is triggered. |
![]() | AddInitListener | Registers a
InitListener
to be notified when a event of completed Scanner
initialization is triggered. |
![]() | AddPresentationStateListener | Registers a
PresentationStateListener
to be notified when a presentation mode state change
event is triggered. |
![]() | AddReadListener | Registers a
ReadListener
to be notified when a read event is triggered. |
![]() | AddStartListener | Registers a
StartListener
to be notified when a scan started event is triggered. |
![]() | AddStopListener | Registers a
StopListener
to be notified when a scan stopped event is triggered. |
![]() | AddTimeoutListener | Registers a
TimeoutListener
to be notified when a scan timeout event is triggered. |
![]() | CommitProperties | Saves the configuration. |
![]() | EnableAllSymbologies | Enables or disables all supported symbologies. |
![]() | EnableSymbology | Enables or disables a barcode symbology type. |
![]() | GetPropertyAvailability | Retrieves the availability, the support, for the passed
programming parameters. |
![]() | GetPropertyInts | Gets one or more label programming parameters of type
Integer. |
![]() | GetPropertyRanges | Gets one or more property ranges for the passed
programming parameters. |
![]() | GetPropertyStrings | Gets one or more label programming parameters of type
String. |
![]() | IsSymbologyEnabled | Returns current enable setting for a particular barcode
symbology. |
![]() | IsSymbologySupported | Return true if the device's decoder is able to read a
particular barcode symbology. |
![]() | PressTrigger | Call this method to simulate a trigger button pressure. |
![]() | Release | Removes and clears all the registered listeners, in case
some application did not call removal methods. |
![]() | ReleaseTrigger | Call this method to simulate a release of a the trigger
button. |
![]() | RemoveDeinitListener | Unregisters a
DeinitListener
associated with the decoder. |
![]() | RemoveFrameCaptureListener | Unregisters a
FrameCaptureListener
associated with the decoder. |
![]() | RemoveFrameSaveListener | Unregisters a
FrameSaveListener
associated with the decoder. |
![]() | RemoveInitListener | Unregisters a
InitListener
associated with the decoder. |
![]() | RemovePresentationStateListener | Unregisters a
PresentationStateListener
associated with the decoder. |
![]() | RemoveReadListener | Unregisters a
ReadListener
associated with the decoder. |
![]() | RemoveStartListener | Unregisters a
StartListener
associated with the decoder. |
![]() | RemoveStopListener | Unregisters a
StopListener
associated with the decoder. |
![]() | RemoveTimeoutListener | Unregisters a
TimeoutListener
associated with the decoder. |
![]() | SetDefaults | Set factory defaults for all barcode symbology types. |
![]() | SetPropertyInts | Sets one or more label programming parameters of type
Integer. |
![]() | SetPropertyStrings | Sets one or more label programming parameters of type
String. |
![]() | StartDecode | Call this method to start decoding. |
![]() | StartDecode | Call this method to start decoding. |
![]() | StopDecode | This stops any data acquisition currently in progress. |
Name | Description | |
---|---|---|
![]() | ActionStartDecode | To be added. |
![]() | ActionStopDecode | To be added. |
BarcodeManager
gives developers access to decoder
related methods of the device.
To decode bar codes with this class, use the following steps:
BarcodeManager()
;
startDecode()
. Your registered StartListener/ReadListener/TimeoutListener
will be called when a successful decode occurs or if the
configured timeout expires, etc;
stopDecode()
to
end the decode session;
release()
to
release all registered
StartListener/ReadListener/TimeoutListener/StopListener.
Configuration persistance: All the configuration changes
done using the BarcodeManager
are natively not
persistent to the device reboot, they are kept only in the current
device session. If you want to persist your changes in flash and
keep them across a system reboot the only existing way is to call
explicitally
commitProperties()
. Beware that the decoding system configuration is restored from
flash every time the decoding service restart and so any
configuration not stored persistently could be lost if the service
is killed (and consequently restarted) by the Android OS. It is a
rare event that could happens for many reasons (low resources,
execution exception, not responding service, etc...), the decoding
system is usually restored but any configuration not stored
persistently could be lost.