BaseCommand

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

Abstract class representing a base command for the scanner.

Inheritors

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.