# ContentLauncherTrait.LaunchContentCommand.Request


```
class ContentLauncherTrait.LaunchContentCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the LaunchContent command.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request.CommandFields : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html, https://developers.home.google.com/reference/kotlin/com/google/home/Field` Descriptor enum for this command's request fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#Request(com.google.home.matter.standard.ContentLauncherTrait.ContentSearchStruct,kotlin.Boolean,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( search: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.ContentSearchStruct, autoPlay: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, data: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>, playbackPreferences: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.PlaybackPreferencesStruct>, useCurrentContext: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html> )` Creates a request payload for the LaunchContent command. |

| ### Public functions |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/StructDescriptor` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#getDescriptor()()` Returns the descriptor for the struct. |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?` | `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#getFieldValueById(kotlin.UInt)(tagId: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html)` Returns the value of the field for the given tag ID. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#autoPlay()` Set to `true` to have the matching content play automatically. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#data()` Optional app-specific data. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.PlaybackPreferencesStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#playbackPreferences()` The user's preferred Text/AudioTracks and playbackPosition. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.ContentSearchStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#search()` The content to launch. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Request#useCurrentContext()` Whether to consider the context of current ongoing activity. |

## Public constructors

### Request

```
Request(
    search: ContentLauncherTrait.ContentSearchStruct = ContentSearchStruct(),
    autoPlay: Boolean = false,
    data: OptionalValue<String> = OptionalValue.absent(),
    playbackPreferences: OptionalValue<ContentLauncherTrait.PlaybackPreferencesStruct> = OptionalValue.absent(),
    useCurrentContext: OptionalValue<Boolean> = OptionalValue.absent()
)
```

Creates a request payload for the LaunchContent command.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### autoPlay

```
val autoPlay: Boolean
```

Set to `true` to have the matching content play automatically.

### data

```
val data: OptionalValue<String>
```

Optional app-specific data.

### playbackPreferences

```
val playbackPreferences: OptionalValue<ContentLauncherTrait.PlaybackPreferencesStruct>
```

The user's preferred Text/AudioTracks and playbackPosition.

### search

```
val search: ContentLauncherTrait.ContentSearchStruct
```

The content to launch.

### useCurrentContext

```
val useCurrentContext: OptionalValue<Boolean>
```

Whether to consider the context of current ongoing activity.