ContentLauncherTrait.LaunchContentCommand.Request

class ContentLauncherTrait.LaunchContentCommand.Request : ClusterStruct


The request payload for the LaunchContent command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

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

Creates a request payload for the LaunchContent command.

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

Boolean

Set to true to have the matching content play automatically.

OptionalValue<String>

Optional app-specific data.

OptionalValue<ContentLauncherTrait.PlaybackPreferencesStruct>

The user's preferred Text/AudioTracks and playbackPosition.

ContentLauncherTrait.ContentSearchStruct

The content to launch.

OptionalValue<Boolean>

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.