AssistantBroadcast

class AssistantBroadcast : PlatformTrait, AssistantBroadcastTrait.Attributes


API for the AssistantBroadcast trait. It is used to broadcast message for automations only and is not available in Device and Structure APIs.

Summary

Public functions

suspend AssistantBroadcastTrait.BroadcastCommand.BroadcastCommandResponse

Broadcast the message on all the devices in a structure or on a particular device.

Public properties

open TraitFactory<AssistantBroadcast>

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

broadcast

suspend fun broadcast(msg: String? = null): AssistantBroadcastTrait.BroadcastCommand.BroadcastCommandResponse

Broadcast the message on all the devices in a structure or on a particular device.

Public properties

factory

open val factoryTraitFactory<AssistantBroadcast>