ContentLauncherTrait.LaunchContentCommand.Request

class ContentLauncherTrait.LaunchContentCommand.Request


The request payload for the LaunchContent command.

Summary

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 properties

Boolean

Set to true to have the matching content play automatically.

OptionalValue<String>

Optional app-specific data.

OptionalValue<ContentLauncherTrait.PlaybackPreferencesStruct>
ContentLauncherTrait.ContentSearchStruct

The content to launch.

OptionalValue<Boolean>

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 properties

autoPlay

val autoPlayBoolean

Set to true to have the matching content play automatically.

data

val dataOptionalValue<String>

Optional app-specific data.

search

val searchContentLauncherTrait.ContentSearchStruct

The content to launch.

useCurrentContext

val useCurrentContextOptionalValue<Boolean>