Package io.scanbot.sdk.ui_v2.common
Class Timeouts
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Timeouts implements Parcelable
Configuration of timeouts.
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
autoCancelTimeout
private Integer
initialScanDelay
-
Method Summary
Modifier and Type Method Description final Integer
getAutoCancelTimeout()
Sets the auto close timer in ms. final Unit
setAutoCancelTimeout(Integer autoCancelTimeout)
Sets the auto close timer in ms. final Integer
getInitialScanDelay()
Sets the time in ms the first scan is delayed by. final Unit
setInitialScanDelay(Integer initialScanDelay)
Sets the time in ms the first scan is delayed by. final JSONObject
toJson()
final static Timeouts
default()
-
-
Method Detail
-
getAutoCancelTimeout
final Integer getAutoCancelTimeout()
Sets the auto close timer in ms. Default is 0 (disabled). Default is 0
-
setAutoCancelTimeout
final Unit setAutoCancelTimeout(Integer autoCancelTimeout)
Sets the auto close timer in ms. Default is 0 (disabled). Default is 0
-
getInitialScanDelay
final Integer getInitialScanDelay()
Sets the time in ms the first scan is delayed by. Default is 0 (disabled). Default is 0
-
setInitialScanDelay
final Unit setInitialScanDelay(Integer initialScanDelay)
Sets the time in ms the first scan is delayed by. Default is 0 (disabled). Default is 0
-
toJson
final JSONObject toJson()
-
-
-
-