LightingCurve

class LightingCurve : PlatformTrait, LightingCurveTrait.Attributes, Updatable


Structure level trait for managing lighting curves.

Summary

Nested types

Descriptor enum for this trait's attributes.

Public properties

open TraitFactory<LightingCurve>

Inherited functions

From com.google.home.google.PlatformTrait
ObjectCommand
<REQUEST : Any?> createObjectCommand(
    commandId: String,
    request: PlatformTraitPayload<REQUEST>
)
suspend Unit
sendCommand(commandId: String)
suspend Unit
<REQUEST : Any?> sendCommand(
    commandId: String,
    request: PlatformTraitPayload<REQUEST>
)
suspend RESPONSE
<RESPONSE : Any?> sendCommand(
    commandId: String,
    responseParser: Parser<RESPONSE>
)
suspend RESPONSE
<REQUEST : Any?, RESPONSE : Any?> sendCommand(
    commandId: String,
    request: PlatformTraitPayload<REQUEST>,
    responseParser: Parser<RESPONSE>
)
suspend Unit
<T : Any?> write(parser: Parser<T>, attributes: T, useTimedInteraction: Boolean)

Public functions

createLightingCurveSetting

suspend fun createLightingCurveSetting(
    config: LightingCurveTrait.LightingCurveConfig? = null
): String?

update

open suspend fun update(optimisticReturn: (LightingCurve) -> Unit, init: LightingCurveTrait.MutableAttributes.() -> Unit): LightingCurve

Updater function to modify any writable attributes.

Public properties

factory

open val factory: TraitFactory<LightingCurve>