MediaPlaybackTrait.TrackAttributesStruct

class MediaPlaybackTrait.TrackAttributesStruct : ClusterStruct


Attributes of a track.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

TrackAttributesStruct(
    languageCode: String,
    displayName: OptionalValue<String?>
)

Creates the TrackAttributesStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

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

Public properties

OptionalValue<String?>

Display name.

String

Language code.

Public constructors

TrackAttributesStruct

TrackAttributesStruct(
    languageCode: String = "",
    displayName: OptionalValue<String?> = OptionalValue.absent()
)

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

displayName

val displayNameOptionalValue<String?>

Display name.

languageCode

val languageCodeString

Language code.