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 IntegerautoCancelTimeoutprivate IntegerinitialScanDelay
-
Method Summary
Modifier and Type Method Description final IntegergetAutoCancelTimeout()Sets the length of time, in milliseconds, when the scanner should auto close. final UnitsetAutoCancelTimeout(Integer autoCancelTimeout)Sets the length of time, in milliseconds, when the scanner should auto close. final IntegergetInitialScanDelay()Sets the length of time, in milliseconds, that the first scan will be delayed by. final UnitsetInitialScanDelay(Integer initialScanDelay)Sets the length of time, in milliseconds, that the first scan will be delayed by. final JSONObjecttoJson(ToJsonConfiguration config)final Timeoutsclone()final static Timeoutsdefault()-
-
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(ToJsonConfiguration config)
-
-
-
-