Mount

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


API for the Mount trait. This trait provides device-specific mount-related information and functionality.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this event's fields.

Descriptor enum for this event's fields.

Public functions

Boolean

Public properties

open TraitFactory<Mount>

Inherited functions

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

MountTrait.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.

MountTrait.MountDetectionTypeEnum?

The method or mechanism used to detect and determine the current mount state.

MountTrait.MountStateEnum?

The physical attachment state of the device to the mount.

String?

Name of the detected mount type.

MountTrait.MountTypeOverrideEnum?

User-defined override to bypass automatic mount detection.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: Mount.Attribute): Boolean

Public properties

factory

open val factoryTraitFactory<Mount>