Binding

interface Binding : BindingTrait.Attributes, MatterTrait, Updatable


API for the Binding trait. This trait represents one or more persistent relationships between an endpoint and one or more other endpoints. A binding does not require that the relationship exists. It is up to the node application to set up the relationship.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public functions

Boolean

Public properties

open TraitFactory<Binding>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.Updatable
suspend Binding
update(optimisticReturn: (Binding) -> Unit, init: BindingTrait.MutableAttributes.() -> Unit)

Creates a mutable copy of an object and calls the given function to mutate it, then saves it and returns a new immutable copy with the updated state.

Inherited properties

From com.google.home.matter.standard.BindingTrait.Attributes
List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

List<BindingTrait.TargetStruct>?

A list of bindings.

UShort

The revision of the server cluster specification supported by the cluster instance.

UInt

Whether the server supports zero or more optional cluster features.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: Binding.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<Binding>