# ChannelCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface ChannelCommands
```

<br />

Known direct subclasses [Channel](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Channel)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Channel` | API for the Channel trait. |

*** ** * ** ***

Commands for the Channel trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#cancelRecordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)( programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, externalIdList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html )` Cancel recording for a specific program or series. |
| `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/matter/standard/ChannelCommands#cancelRecordProgramBatchable(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)( programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, externalIdList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#cancelRecordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChangeChannelCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannel(kotlin.String)(match: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Change the channel to the specified channel. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChangeChannelCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannelBatchable(kotlin.String)(match: 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/matter/standard/ChannelCommands#changeChannel(kotlin.String)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannelByNumber(kotlin.UShort,kotlin.UShort)(majorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, minorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` Change the channel to the channel specified by `majorNumber` and `minorNumber`. |
| `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/matter/standard/ChannelCommands#changeChannelByNumberBatchable(kotlin.UShort,kotlin.UShort)(majorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, minorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannelByNumber(kotlin.UShort,kotlin.UShort)` command. |
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#getProgramGuide(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Retrieves the program guide. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#getProgramGuideBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.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/ChannelCommands#getProgramGuide(kotlin.Function1)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#recordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)( programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, externalIdList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html )` Record a specific program or series when it goes live. |
| `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/matter/standard/ChannelCommands#recordProgramBatchable(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)( programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html, externalIdList: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.AdditionalInfoStruct>, data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#recordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#skipChannel(kotlin.Short)(count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)` Provides channel up and channel down functionality, by allowing the index of the selected channel to jump by the specified number of steps. |
| `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/matter/standard/ChannelCommands#skipChannelBatchable(kotlin.Short)(count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#skipChannel(kotlin.Short)` command. |

## Public functions

### cancelRecordProgram

```
suspend fun cancelRecordProgram(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
): Unit
```

Cancel recording for a specific program or series.

| Parameters |
|---|---|
| `programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The program identifier for the program that should be cancelled from recording. |
| `shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | Whether the whole series associated to the program should be cancelled from recording. |
| `data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html` | Optional app-specific data. |

### cancelRecordProgramBatchable

```
fun cancelRecordProgramBatchable(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#cancelRecordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)` command.

Cancel recording for a specific program or series.

| Parameters |
|---|---|
| `programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The program identifier for the program that should be cancelled from recording. |
| `shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | Whether the whole series associated to the program should be cancelled from recording. |
| `data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html` | Optional app-specific data. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### changeChannel

```
suspend fun changeChannel(match: String): ChannelTrait.ChangeChannelCommand.Response
```

Change the channel to the specified channel.

| Parameters |
|---|---|
| `match: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | A string used to identify the intended channel, which may be a call sign, a name, or a number. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChangeChannelCommand.Response` | The status of the `ChangeChannel` command. |

### changeChannelBatchable

```
fun changeChannelBatchable(match: String): BatchableCommand<ChannelTrait.ChangeChannelCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannel(kotlin.String)` command.

Change the channel to the specified channel.

| Parameters |
|---|---|
| `match: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | A string used to identify the intended channel, which may be a call sign, a name, or a number. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.ChangeChannelCommand.Response>` | BatchableCommand |

### changeChannelByNumber

```
suspend fun changeChannelByNumber(majorNumber: UShort, minorNumber: UShort): Unit
```

Change the channel to the channel specified by `majorNumber` and `minorNumber`.

| Parameters |
|---|---|
| `majorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The channel major number value to which the channel should change, in ATSC format. |
| `minorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The channel minor number value to which the channel should change, in ATSC format. |

### changeChannelByNumberBatchable

```
fun changeChannelByNumberBatchable(majorNumber: UShort, minorNumber: UShort): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#changeChannelByNumber(kotlin.UShort,kotlin.UShort)` command.

Change the channel to the channel specified by `majorNumber` and `minorNumber`.

| Parameters |
|---|---|
| `majorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The channel major number value to which the channel should change, in ATSC format. |
| `minorNumber: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | The channel minor number value to which the channel should change, in ATSC format. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### getProgramGuide

```
suspend fun getProgramGuide(optionalArgs: ChannelTrait.GetProgramGuideCommand.OptionalArgs.() -> Unit = {}): ChannelTrait.GetProgramGuideCommand.Response
```

Retrieves the program guide.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Response` | The program guide response. |

### getProgramGuideBatchable

```
fun getProgramGuideBatchable(optionalArgs: ChannelTrait.GetProgramGuideCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<ChannelTrait.GetProgramGuideCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#getProgramGuide(kotlin.Function1)` command.

Retrieves the program guide.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelTrait.GetProgramGuideCommand.Response>` | BatchableCommand |

### recordProgram

```
suspend fun recordProgram(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
): Unit
```

Record a specific program or series when it goes live.

| Parameters |
|---|---|
| `programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The program identifier for the program that should be recorded. |
| `shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | Whether the whole series associated to the program should be recorded. |
| `data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html` | Optional app-specific data. |

### recordProgramBatchable

```
fun recordProgramBatchable(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#recordProgram(kotlin.String,kotlin.Boolean,kotlin.collections.List,kotlin.ByteArray)` command.

Record a specific program or series when it goes live.

| Parameters |
|---|---|
| `programIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The program identifier for the program that should be recorded. |
| `shouldRecordSeries: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | Whether the whole series associated to the program should be recorded. |
| `data: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html` | Optional app-specific data. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### skipChannel

```
suspend fun skipChannel(count: Short): Unit
```

Provides channel up and channel down functionality, by allowing the index of the selected channel to jump by the specified number of steps.

| Parameters |
|---|---|
| `count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html` | When positive, `count` specifies the number of steps to increase the current channel number. When negative, it specifies the number of steps to decrease the current channel number. |

### skipChannelBatchable

```
fun skipChannelBatchable(count: Short): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/ChannelCommands#skipChannel(kotlin.Short)` command.

Provides channel up and channel down functionality, by allowing the index of the selected channel to jump by the specified number of steps.

| Parameters |
|---|---|
| `count: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-short/index.html` | When positive, `count` specifies the number of steps to increase the current channel number. When negative, it specifies the number of steps to decrease the current channel number. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |