SwitchTrait.LongPress

interface SwitchTrait.LongPress : ClusterStruct


Indicates that the momentary switch has been pressed for a long time.

Summary

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UByte?

The value of the currentPosition attribute after the press.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

newPosition

val newPositionUByte?

The value of the currentPosition attribute after the press.