# ContentAppObserverCommands

# ContentAppObserverCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ContentAppObserverCommands
```

<br />

Known direct subclasses [ContentAppObserver](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserver)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserver` | API for the ContentAppObserver trait. |

*** ** * ** ***

Commands for the ContentAppObserver trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverCommands#contentAppMessage(kotlin.String,kotlin.Function1)(encodingHint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Send a message to the content app. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverCommands#contentAppMessageBatchable(kotlin.String,kotlin.Function1)(encodingHint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverCommands#contentAppMessage(kotlin.String,kotlin.Function1)` command. |

## Public functions

### contentAppMessage

```
suspend fun contentAppMessage(encodingHint: String, optionalArgs: ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> Unit = {}): ContentAppObserverTrait.ContentAppMessageCommand.Response
```

Send a message to the content app.

| Parameters |
|---|---|
| `encodingHint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | A content app-specific hint as to the encoding of the data. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response` | The result of the `ContentAppMessage` command. |

### contentAppMessageBatchable

```
fun contentAppMessageBatchable(
    encodingHint: String,
    optionalArgs: ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> Unit = {}
): BatchableCommand<ContentAppObserverTrait.ContentAppMessageCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverCommands#contentAppMessage(kotlin.String,kotlin.Function1)` command.

Send a message to the content app.

| Parameters |
|---|---|
| `encodingHint: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | A content app-specific hint as to the encoding of the data. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentAppObserverTrait.ContentAppMessageCommand.Response>` | BatchableCommand |