# ApplicationLauncherTrait.LaunchAppCommand.Request

# ApplicationLauncherTrait.LaunchAppCommand.Request


```
class ApplicationLauncherTrait.LaunchAppCommand.Request : ClusterStruct
```

<br />

*** ** * ** ***

The request payload for the LaunchApp 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/ApplicationLauncherTrait.LaunchAppCommand.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/ApplicationLauncherTrait.LaunchAppCommand.Request#Request(com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( application: 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/ApplicationLauncherTrait.ApplicationStruct>, data: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html> )` Creates a request payload for the LaunchApp 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/ApplicationLauncherTrait.LaunchAppCommand.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/ApplicationLauncherTrait.LaunchAppCommand.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://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ApplicationLauncherTrait.ApplicationStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ApplicationLauncherTrait.LaunchAppCommand.Request#application()` The app to launch. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ApplicationLauncherTrait.LaunchAppCommand.Request#data()` Data to be passed to the app upon launch. |

## Public constructors

### Request

```
Request(
    application: OptionalValue<ApplicationLauncherTrait.ApplicationStruct> = OptionalValue.absent(),
    data: OptionalValue<ByteArray> = OptionalValue.absent()
)
```

Creates a request payload for the LaunchApp 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

### application

```
val application: OptionalValue<ApplicationLauncherTrait.ApplicationStruct>
```

The app to launch.

### data

```
val data: OptionalValue<ByteArray>
```

Data to be passed to the app upon launch.