Timeouts

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

Configuration of timeouts.

Constructors

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

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
Link copied to clipboard
fun toJson(config: ToJsonConfiguration = ToJsonConfiguration.default()): JSONObject