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 AssistantFulfillmentTrait.OkGoogleCommand.OkGoogleCommandResponse
okGoogle(query: String?)

OkGoogle command execution on a particular device.

Public properties

open TraitFactory<AssistantFulfillment>

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

okGoogle

suspend fun okGoogle(query: String? = null): AssistantFulfillmentTrait.OkGoogleCommand.OkGoogleCommandResponse

OkGoogle command execution on a particular device.

Public properties

factory

open val factoryTraitFactory<AssistantFulfillment>