# ContentLauncher

# ContentLauncher


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ContentLauncher : ContentLauncherTrait.Attributes, MatterTrait, ContentLauncherCommands
```

<br />

*** ** * ** ***

API for the ContentLauncher trait. This trait provides an interface for launching content on a video player device such as a streaming media player, smart TV, or smart screen.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher.Attribute : 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 trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher#supports(com.google.home.matter.standard.ContentLauncher.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher#supports(com.google.home.matter.standard.ContentLauncher.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncher#factory()` |

| ### Inherited functions |
|---|
| From [com.google.home.matter.standard.ContentLauncherCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands) |---|---| | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchContent(com.google.home.matter.standard.ContentLauncherTrait.ContentSearchStruct,kotlin.Boolean,kotlin.Function1)( search: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.ContentSearchStruct, autoPlay: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` Launch the specified content. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchContentBatchable(com.google.home.matter.standard.ContentLauncherTrait.ContentSearchStruct,kotlin.Boolean,kotlin.Function1)( search: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.ContentSearchStruct, autoPlay: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchContentCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchContent(com.google.home.matter.standard.ContentLauncherTrait.ContentSearchStruct,kotlin.Boolean,kotlin.Function1)` command. | | `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchUrlCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchUrl(kotlin.String,kotlin.Function1)(contentUrl: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchUrlCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Launch content from the specified URL. | | `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchUrlCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchUrlBatchable(kotlin.String,kotlin.Function1)(contentUrl: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.LaunchUrlCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherCommands#launchUrl(kotlin.String,kotlin.Function1)` command. | |
| From [com.google.home.matter.standard.ContentLauncherTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes) |---|---| | `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.Attributes#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.Attributes#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. | |
| From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) |---|---| | `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()` | |

| ### Inherited properties |
|---|
| From [com.google.home.matter.standard.ContentLauncherTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes) |---|---| | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#acceptHeader()` A list of content types supported by the video player or content app in the form of a list of one or more MIME types. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#acceptedCommandList()` A list of client-generated commands which are supported by this cluster server instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#attributeList()` A list of the attribute IDs of the attributes supported by the cluster instance. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#clusterRevision()` The revision of the server cluster specification supported by the cluster instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Feature` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#featureMap()` Whether the server supports zero or more optional cluster features. | | `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#generatedCommandList()` A list of server-generated commands (server to client) which are supported by this cluster server instance. | | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.SupportedProtocolsBitmap?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ContentLauncherTrait.Attributes#supportedStreamingProtocols()` Information about supported streaming protocols. | |
| From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) |---|---| | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` | `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()` | |

## Public functions

### supports

```
fun supports(attribute: ContentLauncher.Attribute): Boolean
```

### supports

```
fun supports(command: ContentLauncher.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<ContentLauncher>
```