PresetMessage

@Generated(value = ["GoogleHomePlatformCodegen"])
interface PresetMessage : PresetMessageTrait.Attributes, MatterTrait, PresetMessageCommands


API for the PresetMessage trait. This trait provides an interface that supports speaking or displaying a preset message.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public properties

open TraitFactory<PresetMessage>

Inherited functions

From com.google.home.google.PresetMessageCommands
suspend Unit

Play a preset message.

BatchableCommand<Unit>

The batchable version of playPresetMessage command.

From com.google.home.google.PresetMessageTrait.Attributes
open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.google.PresetMessageTrait.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<PresetMessageTrait.PhraseType>?

The available phrase types.

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: PresetMessage.Attribute): Boolean

supports

fun supports(command: PresetMessage.Command): Boolean

Public properties

factory

open val factoryTraitFactory<PresetMessage>