Click or drag to resize

BarcodeManagerStartDecode Method (Int32)

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
)

Parameters

timeout
Type: SystemInt32
- 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: Int32
intSuccess in case of success, otherwise a possible error code, matching one of the DecodeException error constants.
Exceptions
ExceptionCondition
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) {


&nbsp&nbspdecoder.startDecode(5000);

}

[Android Documentation]

See Also