BarcodeManagerStartDecode Method |
Call this method to start decoding.
Namespace:
Com.Datalogic.Decode
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0
(1.0.0.0)
Syntax
public virtual int StartDecode (int timeout);
Public Virtual Integer StartDecode (Integer timeout);
Parameters
- timeout
- Type: System.Int32
int representing
the amount of time, in milliseconds, to continue the
attempt to acquire data. If data has not been obtained
after this time period, then the decoder is
deactivated.
Return Value
Type: System.Int32
int DecodeException.SUCCESS in case of success, otherwise a possible error code,
matching one of the DecodeException error constants.
Exceptions
Exception |
Condition |
DecodeException |
in case of error, when exceptions are enabled
through the ErrorManager singleton. |
Remarks
Call this method to start decoding.
If the trigger is already active, the present timeout is
reset to the new value and the count starts again.
Example:
public int startDecodingForFiveSeconds(BarcodeManager
decoder) {
decoder.startDecode(5000);
}
[Android Documentation]
See Also