# ContentLauncherTrait.PlaybackPreferencesStruct


```
class ContentLauncherTrait.PlaybackPreferencesStruct : ClusterStruct
```

<br />

*** ** * ** ***

Preferences sent by the client to the receiver.

## 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.PlaybackPreferencesStruct.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.PlaybackPreferencesStruct#PlaybackPreferencesStruct(kotlin.ULong,com.google.home.matter.standard.ContentLauncherTrait.TrackPreferenceStruct,com.google.home.matter.serialization.OptionalValue)( playbackPosition: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html, textTrack: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct, audioTracks: 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.TrackPreferenceStruct>> )` Creates the PlaybackPreferencesStruct 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.PlaybackPreferencesStruct#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.PlaybackPreferencesStruct#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://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.PlaybackPreferencesStruct#audioTracks()` The list of the user's preferred Audio Tracks. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-long/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.PlaybackPreferencesStruct#playbackPosition()` The preferred position in the media to launch playback from. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.TrackPreferenceStruct` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.PlaybackPreferencesStruct#textTrack()` The user's preferred Text Track. |

## Public constructors

### PlaybackPreferencesStruct

```
PlaybackPreferencesStruct(
    playbackPosition: ULong,
    textTrack: ContentLauncherTrait.TrackPreferenceStruct = TrackPreferenceStruct(),
    audioTracks: OptionalValue<List<ContentLauncherTrait.TrackPreferenceStruct>> = OptionalValue.absent()
)
```

Creates the PlaybackPreferencesStruct 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

### audioTracks

```
val audioTracks: OptionalValue<List<ContentLauncherTrait.TrackPreferenceStruct>>
```

The list of the user's preferred Audio Tracks.

### playbackPosition

```
val playbackPosition: ULong
```

The preferred position in the media to launch playback from.

### textTrack

```
val textTrack: ContentLauncherTrait.TrackPreferenceStruct
```

The user's preferred Text Track.