ApplicationLauncherTrait.LaunchAppCommand.Request

class ApplicationLauncherTrait.LaunchAppCommand.Request : ClusterStruct


The request payload for the LaunchApp command.

Summary

Nested types

Descriptor enum for this command's request fields.

Public constructors

Creates a request payload for the LaunchApp 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

OptionalValue<ApplicationLauncherTrait.ApplicationStruct>

The app to launch.

OptionalValue<ByteArray>

Data to be passed to the app upon launch.

Public constructors

Request

Request(
    application: OptionalValue<ApplicationLauncherTrait.ApplicationStruct> = OptionalValue.absent(),
    data: OptionalValue<ByteArray> = OptionalValue.absent()
)

Creates a request payload for the LaunchApp command.

Public functions

getDescriptor

@HomeExperimentalApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalApi
open fun getFieldValueById(tagId: UInt): Any?

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

Public properties

data

val dataOptionalValue<ByteArray>

Data to be passed to the app upon launch.