AttributeDetails

class AttributeDetails : FieldDetails


Metadata pertaining to a trait attribute.

Summary

Public constructors

AttributeDetails(
    name: String,
    isOptional: Boolean,
    constraint: Constraint?,
    isModifiable: Boolean,
    isSubscribable: Boolean,
    field: Field
)

Create an AttributeDetails instance.

Public properties

Boolean

Whether the attribute is modifiable.

Boolean

Whether the attribute can be subscribed to.

Inherited properties

From com.google.home.automation.FieldDetails
Constraint?
Field
Boolean
String

This property is deprecated. Use field.toString() instead

Public constructors

AttributeDetails

AttributeDetails(
    name: String,
    isOptional: Boolean,
    constraint: Constraint?,
    isModifiable: Boolean = false,
    isSubscribable: Boolean = false,
    field: Field
)

Create an AttributeDetails instance.

Public properties

isModifiable

val isModifiableBoolean

Whether the attribute is modifiable.

isSubscribable

val isSubscribableBoolean

Whether the attribute can be subscribed to.