# ContentLauncherTrait.TrackPreferenceStruct


```
class ContentLauncherTrait.TrackPreferenceStruct : ClusterStruct
```

<br />

*** ** * ** ***

Defines Text/Audio Track preferences.

## 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.TrackPreferenceStruct.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct#TrackPreferenceStruct(kotlin.String,com.google.home.matter.serialization.OptionalValue,kotlin.UByte)( languageCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, characteristics: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.CharacteristicEnum>>, audioOutputIndex: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html )` Creates the TrackPreferenceStruct class. |

| ### 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.TrackPreferenceStruct#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.TrackPreferenceStruct#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/-u-byte/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct#audioOutputIndex()` Indicates which audio output the Audio Track should be played on. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.CharacteristicEnum>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct#characteristics()` Indicate a purpose, trait or feature associated with the Track. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct#languageCode()` Identifies the primary language used in the Track. |

## Public constructors

### TrackPreferenceStruct

```
TrackPreferenceStruct(
    languageCode: String = "",
    characteristics: OptionalValue<List<ContentLauncherTrait.CharacteristicEnum>> = OptionalValue.absent(),
    audioOutputIndex: UByte
)
```

Creates the TrackPreferenceStruct class.

## 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

### audioOutputIndex

```
val audioOutputIndex: UByte
```

Indicates which audio output the Audio Track should be played on.

### characteristics

```
val characteristics: OptionalValue<List<ContentLauncherTrait.CharacteristicEnum>>
```

Indicate a purpose, trait or feature associated with the Track.

### languageCode

```
val languageCode: String
```

Identifies the primary language used in the Track.