Timeouts

data class Timeouts(var autoCancelTimeout: Int = 0, var initialScanDelay: Int = 0)

Configuration of timeouts.

Constructors

Link copied to clipboard
constructor(autoCancelTimeout: Int = 0, initialScanDelay: Int = 0)
constructor(source: Map<String, Any?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Sets the length of time, in milliseconds, when the scanner should auto close. Default is 0 (disabled).

Link copied to clipboard

Sets the length of time, in milliseconds, that the first scan will be delayed by. Default is 0 (disabled).

Functions

Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JsonObject
Link copied to clipboard
fun toJsonString(config: ToJsonConfiguration = ToJsonConfiguration.default()): String