SwitchTrait.MultiPressOngoing

interface SwitchTrait.MultiPressOngoing


Indicates how many times the momentary switch has been pressed in a multi-press sequence.

Summary

Public properties

UByte?

Valid values are:

  • 2 when the second press of a multi-press sequence has been detected,
  • 3 when the third press of a multi-press sequence has been detected,
  • n when the nth press of a multi-press sequence has been detected.

UByte?

The value of the currentPosition attribute after the press.

Public properties

currentNumberOfPressesCounted

val currentNumberOfPressesCountedUByte?

Valid values are:

  • 2 when the second press of a multi-press sequence has been detected,
  • 3 when the third press of a multi-press sequence has been detected,
  • n when the nth press of a multi-press sequence has been detected.

newPosition

val newPositionUByte?

The value of the currentPosition attribute after the press.