VoiceStarter

class VoiceStarter : PlatformTrait, VoiceStarterTrait.Attributes


API for the VoiceStarter trait, which is only available on a structure entity. This trait uses Google Assistant capabilities to trigger automations.

Summary

Public properties

open TraitFactory<VoiceStarter>

Inherited functions

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

factory

open val factoryTraitFactory<VoiceStarter>