ScannerCommand

class ScannerCommand(val code: String, val parameters: List<String> = emptyList(), val sendFeedback: Boolean = true, val ledFeedback: Boolean? = null, val buzzerFeedback: Boolean? = null, val vibrationFeedback: Boolean? = null) : BaseCommand

Class representing a specific scanner command, inheriting from BaseCommand.

This class is used to create specific scanner commands with optional parameters and feedback settings for LED, buzzer, and vibration. If the feedback parameters are null and sendFeedback is true, global ScannerFeedback settings from the OptiConnect instance will be used.

Parameters

code

The command code to be sent to the scanner.

parameters

Optional parameters to be included with the command.

sendFeedback

A flag to indicate if feedback should be sent.

ledFeedback

A flag to indicate if LED feedback is enabled. Defaults to the global setting if null.

buzzerFeedback

A flag to indicate if buzzer feedback is enabled. Defaults to the global setting if null.

vibrationFeedback

A flag to indicate if vibration feedback is enabled. Defaults to the global setting if null.

Constructors

Link copied to clipboard
constructor(code: String, parameters: List<String> = emptyList(), sendFeedback: Boolean = true, ledFeedback: Boolean? = null, buzzerFeedback: Boolean? = null, vibrationFeedback: Boolean? = null)

Properties

Link copied to clipboard
val buzzerFeedback: Boolean? = null

A flag to indicate if buzzer feedback is enabled.

Link copied to clipboard

The command code to be sent to the scanner.

Link copied to clipboard
val ledFeedback: Boolean? = null

A flag to indicate if LED feedback is enabled.

Link copied to clipboard

Optional parameters to be included with the command.

Link copied to clipboard
val sendFeedback: Boolean = true

A flag to indicate if feedback should be sent.

Link copied to clipboard

A flag to indicate if vibration feedback is enabled.