AssistantBroadcast

class AssistantBroadcast : PlatformTrait, AssistantBroadcastTrait.Attributes


AssistantBroadcast class for assistant broadcast capabilities. It is used to broadcast message for automations only. Not available in D&S APIs.

Summary

Public functions

suspend Unit
broadcast(broadcastMessage: String)

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

Inherited functions

From com.google.home.platform.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>
)

Public functions

broadcast

suspend fun broadcast(broadcastMessage: String): Unit

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

Parameters
broadcastMessage: String

The message to be broadcast.