ExtendedPowerSource

@Generated(value = ["GoogleHomePlatformCodegen"])
interface ExtendedPowerSource : ExtendedPowerSourceTrait.Attributes, MatterTrait, ExtendedPowerSourceCommands


API for the ExtendedPowerSource trait. This trait belongs to devices which have a power source.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public properties

open TraitFactory<ExtendedPowerSource>

Inherited properties

From com.google.home.google.ExtendedPowerSourceTrait.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.

Boolean?

Indicates whether battery saver mode is enabled.

List<ExtendedPowerSourceTrait.Capacity>?

The remaining capacity.

List<ExtendedPowerSourceTrait.Capacity>?

The remaining capacity until full.

ExtendedPowerSourceTrait.ChargeSpeed?

The charge speed.

UShort

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

ExtendedPowerSourceTrait.DescriptiveCapacityRemaining?

The description of the remaining capacity.

ExtendedPowerSourceTrait.EnergySource?

The energy source.

ExtendedPowerSourceTrait.DistanceUnit?

The energy storage distance unit visible to the user.

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?

Indicates whether the device is plugged in.

Boolean?

Indicates whether the device is using backup energy source.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: ExtendedPowerSource.Attribute): Boolean

supports

fun supports(command: ExtendedPowerSource.Command): Boolean

Public properties

factory

open val factoryTraitFactory<ExtendedPowerSource>