AssistantFulfillment

class AssistantFulfillment : PlatformTrait, AssistantFulfillmentTrait.Attributes


API for the AssistantFulfillment trait. This trait is used for OkGoogle command execution on devices for automations only and is not available in the Device and Structure APIs.

Summary

Public functions

suspend Unit
okGoogle(query: String)

OkGoogle command execution on a particular device.

Public properties

open TraitFactory<AssistantFulfillment>

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 functions

okGoogle

suspend fun okGoogle(query: String): Unit

OkGoogle command execution on a particular device.

Parameters
query: String

The query to be executed.

Public properties

factory

open val factoryTraitFactory<AssistantFulfillment>