ZoneManagement

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ZoneManagement : ZoneManagementTrait.Attributes, MatterTrait, Updatable, ZoneManagementCommands


API for the ZoneManagement trait. This trait provides an interface to manage regions of interest, known as zones, which can be defined by either the manufacturer or the end user. This is a minimalistic custom version of the ZoneManagement standard Matter cluster, and provides functionality for some of the zone settings.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Descriptor enum for this event's fields.

Descriptor enum for this event's fields.

Public properties

open TraitFactory<ZoneManagement>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.Updatable
suspend ZoneManagement
update(optimisticReturn: (ZoneManagement) -> Unit, init: ZoneManagementTrait.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.

From com.google.home.matter.standard.ZoneManagementCommands
From com.google.home.matter.standard.ZoneManagementTrait.Attributes
open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Inherited properties

From com.google.home.Trait
From com.google.home.matter.standard.ZoneManagementTrait.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.

UShort

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

ZoneManagementTrait.Feature

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.

UByte?
UByte?
UByte?
UByte?
List<ZoneManagementTrait.ZoneTriggerControlStruct>?
ZoneManagementTrait.TwoDCartesianVertexStruct?

The maximum X and Y points that are allowed for TwoD Cartesian Zones.

List<ZoneManagementTrait.ZoneInformationStruct>?

All currently defined zones as a list of ZoneInformationStruct.

Public functions

supports

fun supports(attribute: ZoneManagement.Attribute): Boolean

supports

fun supports(command: ZoneManagement.Command): Boolean

Public properties

factory

open val factoryTraitFactory<ZoneManagement>