RotationTrait.RotationDegreesRange

class RotationTrait.RotationDegreesRange : ClusterStruct


The number of degrees that a device can rotate.

Summary

Public constructors

RotationDegreesRange(
    rotationDegreesMin: Float,
    rotationDegreesMax: Float
)

Creates the RotationDegreesRange class.

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

Float

Maximum rotation in number of degrees

Float

Minimum rotation in number of degrees.

Public constructors

RotationDegreesRange

RotationDegreesRange(
    rotationDegreesMin: Float = 0.0f,
    rotationDegreesMax: Float = 0.0f
)

Creates the RotationDegreesRange class.

Public functions

getDescriptor

open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

rotationDegreesMax

val rotationDegreesMaxFloat

Maximum rotation in number of degrees

rotationDegreesMin

val rotationDegreesMinFloat

Minimum rotation in number of degrees.