VisitorAnnouncement

@Generated(value = ["GoogleHomePlatformCodegen"])
interface VisitorAnnouncement : VisitorAnnouncementTrait.Attributes, MatterTrait, Updatable


API for the VisitorAnnouncement trait. This trait provides settings for visitor announcements when a doorbell is pressed.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public functions

Boolean

Public properties

open TraitFactory<VisitorAnnouncement>

Inherited functions

From com.google.home.TraitStateInvalidation
suspend Unit
From com.google.home.Updatable
suspend VisitorAnnouncement

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.google.VisitorAnnouncementTrait.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.google.VisitorAnnouncementTrait.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.

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.

Boolean?

Enables announcement of visitor arrivals on speakers and smart displays.

Public functions

supports

fun supports(attribute: VisitorAnnouncement.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<VisitorAnnouncement>