# AssistantBroadcast


```
class AssistantBroadcast : PlatformTrait, AssistantBroadcastTrait.Attributes
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||
| ↳ | [com.google.home.google.PlatformTrait](https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait) ||
|   | ↳ | [com.google.home.google.AssistantBroadcast](https://developers.home.google.com/reference/kotlin/com/google/home/google/AssistantBroadcast) |

*** ** * ** ***

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 https://developers.home.google.com/reference/kotlin/com/google/home/google/AssistantBroadcastTrait.BroadcastCommand.BroadcastCommandResponse` | `https://developers.home.google.com/reference/kotlin/com/google/home/google/AssistantBroadcast#broadcast(kotlin.String,kotlin.Boolean)(msg: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?, followInitialDevice: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?)` Broadcast the message on all the devices in a structure or on a particular device. |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/google/AssistantBroadcast>` | `https://developers.home.google.com/reference/kotlin/com/google/home/google/AssistantBroadcast#factory()` |

### Inherited functions

From [com.google.home.google.PlatformTrait](https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait) `ObjectCommand` `<REQUEST : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#createObjectCommand(kotlin.String,com.google.home.google.PlatformTraitPayload)(
commandId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html,
request: https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTraitPayload<REQUEST>
)` `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#sendCommand(kotlin.String)(commandId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `<REQUEST : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#sendCommand(kotlin.String,com.google.home.google.PlatformTraitPayload)(
commandId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html,
request: https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTraitPayload<REQUEST>
)` `suspend RESPONSE` `<RESPONSE : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#sendCommand(kotlin.String,com.google.home.google.Parser)(
commandId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html,
responseParser: https://developers.home.google.com/reference/kotlin/com/google/home/google/Parser<RESPONSE>
)` `suspend RESPONSE` `<REQUEST : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?, RESPONSE : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#sendCommand(kotlin.String,com.google.home.google.PlatformTraitPayload,com.google.home.google.Parser)(
commandId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html,
request: https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTraitPayload<REQUEST>,
responseParser: https://developers.home.google.com/reference/kotlin/com/google/home/google/Parser<RESPONSE>
)` `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `<T : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?> https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#write(com.google.home.google.Parser,kotlin.Any,kotlin.Boolean)(parser: https://developers.home.google.com/reference/kotlin/com/google/home/google/Parser<T>, attributes: T, useTimedInteraction: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`

### Inherited properties

From [com.google.home.google.PlatformTrait](https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait) `open https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` `https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#metadata()` `https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTraitClient` `https://developers.home.google.com/reference/kotlin/com/google/home/google/PlatformTrait#traitClient()`

## Public functions

### broadcast

```
suspend fun broadcast(msg: String? = null, followInitialDevice: Boolean? = null): AssistantBroadcastTrait.BroadcastCommand.BroadcastCommandResponse
```

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

## Public properties

### factory

```
open val factory: TraitFactory<AssistantBroadcast>
```