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 length of time, in milliseconds, when the scanner should auto close. final Unit
setAutoCancelTimeout(Integer autoCancelTimeout)
Sets the length of time, in milliseconds, when the scanner should auto close. final Integer
getInitialScanDelay()
Sets the length of time, in milliseconds, that the first scan will be delayed by. final Unit
setInitialScanDelay(Integer initialScanDelay)
Sets the length of time, in milliseconds, that the first scan will be delayed by. final JSONObject
toJson()
final static Timeouts
default()
-
-
Method Detail
-
getAutoCancelTimeout
final Integer getAutoCancelTimeout()
Sets the length of time, in milliseconds, when the scanner should auto close. Default is 0 (disabled). Default is 0
-
setAutoCancelTimeout
final Unit setAutoCancelTimeout(Integer autoCancelTimeout)
Sets the length of time, in milliseconds, when the scanner should auto close. Default is 0 (disabled). Default is 0
-
getInitialScanDelay
final Integer getInitialScanDelay()
Sets the length of time, in milliseconds, that the first scan will be delayed by. Default is 0 (disabled). Default is 0
-
setInitialScanDelay
final Unit setInitialScanDelay(Integer initialScanDelay)
Sets the length of time, in milliseconds, that the first scan will be delayed by. Default is 0 (disabled). Default is 0
-
toJson
final JSONObject toJson()
-
-
-
-