RotationTrait.RotationFeature

data class RotationTrait.RotationFeature


Rotation trait FeatureMap.

Summary

Public constructors

RotationFeature(
    supportsDegreesRotation: Boolean,
    supportsPercentRotation: Boolean,
    supportsContinuousRotation: Boolean
)

Creates the RotationFeature data class.

Public functions

open ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

String

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

Boolean

Indicates if this device supports continuous rotation.

Boolean

Indicates if this device supports rotation by degrees.

Boolean

Indicates if this device supports rotation by percentage.

String

Trait identifier of the Matter Cluster that defines the bitmap Data Type.

Public constructors

RotationFeature

RotationFeature(
    supportsDegreesRotation: Boolean = false,
    supportsPercentRotation: Boolean = false,
    supportsContinuousRotation: Boolean = false
)

Creates the RotationFeature data class.

Public functions

toRaw

open fun toRaw(): ULong

Convert this ClusterBitmap to raw (bytes) format

Public properties

bitmapName

val bitmapNameString

Name of the Matter bitmap, in UpperCamelCase, e.g. "OnOffControlBitmap" from OnOff Cluster.

supportsContinuousRotation

val supportsContinuousRotationBoolean

Indicates if this device supports continuous rotation.

supportsDegreesRotation

val supportsDegreesRotationBoolean

Indicates if this device supports rotation by degrees.

supportsPercentRotation

val supportsPercentRotationBoolean

Indicates if this device supports rotation by percentage.

traitId

val traitIdString

Trait identifier of the Matter Cluster that defines the bitmap Data Type. Refer to ClusterId.traitId for the format.