Cook

@Generated(value = ["GoogleHomePlatformCodegen"])
interface Cook : CookTrait.Attributes, MatterTrait, CookCommands


API for the Cook trait. This trait belongs to devices that can cook food according to various food presets and supported cooking modes.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public functions

Boolean
Boolean

Public properties

open TraitFactory<Cook>

Inherited functions

From com.google.home.google.CookCommands
suspend CookTrait.CookCommand.Response
cook(
    start: Boolean,
    cookingMode: CookTrait.CookingMode,
    foodPreset: String,
    quantity: Float,
    unit: CookTrait.Unit
)

Start or stop cooking.

BatchableCommand<CookTrait.CookCommand.Response>
cookBatchable(
    start: Boolean,
    cookingMode: CookTrait.CookingMode,
    foodPreset: String,
    quantity: Float,
    unit: CookTrait.Unit
)

The batchable version of cook command.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

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

CookTrait.CookingMode?

The current cooking mode set on the device.

String?

The current food cooking in the device.

Float?

Defines the current amount of food cooking using currentFoodUnit.

CookTrait.Unit?

The unit associated with the currentFoodQuantity.

UInt

Whether the server supports zero or more optional cluster features.

List<CookTrait.FoodPreset>?

Presets for certain types of food.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

List<CookTrait.CookingMode>?

Cooking modes supported by this device.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: Cook.Attribute): Boolean

supports

fun supports(command: Cook.Command): Boolean

Public properties

factory

open val factoryTraitFactory<Cook>