# ExtendedMediaInput


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ExtendedMediaInput : ExtendedMediaInputTrait.Attributes, MatterTrait, ExtendedMediaInputCommands
```

<br />

*** ** * ** ***

API for the ExtendedMediaInput trait. This trait is an extension of the Matter standard trait, `MediaInput`, and is used by devices that can switch inputs.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInput.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/google/ExtendedMediaInput.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/google/ExtendedMediaInput#supports(com.google.home.google.ExtendedMediaInput.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInput.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInput#supports(com.google.home.google.ExtendedMediaInput.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInput.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/google/ExtendedMediaInput>` | `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInput#factory()` |

### Inherited functions

From [com.google.home.google.ExtendedMediaInputCommands](https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands) `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#nextInput()()`

Select the next input.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#nextInputBatchable()()`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#nextInput()` command.
`suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#previousInput()()`

Select the previous input.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#previousInputBatchable()()`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#previousInput()` command.
`suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#selectCustomInput(kotlin.String)(newInput: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`

Set the media input.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#selectCustomInputBatchable(kotlin.String)(newInput: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputCommands#selectCustomInput(kotlin.String)` command.
From [com.google.home.google.ExtendedMediaInputTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.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/google/ExtendedMediaInputTrait.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/google/ExtendedMediaInputTrait.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.google.ExtendedMediaInputTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.Attributes) `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/google/ExtendedMediaInputTrait.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/google/ExtendedMediaInputTrait.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/google/ExtendedMediaInputTrait.Attributes#clusterRevision()`

The revision of the server cluster specification supported by the cluster instance.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html?` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.Attributes#currentCustomInput()`

Key of the input currently in use.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.AvailableInput>?` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.Attributes#customInputsList()`

List of objects representing input audio or video feeds.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html?` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.Attributes#customInputsOrdered()`

This is `true` if the list of outputs is ordered, and also indicates that the next and previous functionality is available.
`https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.Feature` `https://developers.home.google.com/reference/kotlin/com/google/home/google/ExtendedMediaInputTrait.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/google/ExtendedMediaInputTrait.Attributes#generatedCommandList()`

A list of server-generated commands (server to client) which are supported by this cluster server instance.
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: ExtendedMediaInput.Attribute): Boolean
```

### supports

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

## Public properties

### factory

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