ChannelCommands

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

Known direct subclasses
Channel

API for the Channel trait.


Summary

Public functions

suspend Unit
cancelRecordProgram(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
)
BatchableCommand<Unit>
cancelRecordProgramBatchable(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
)
suspend ChannelTrait.ChangeChannelCommand.Response

Change the channel to the specified channel.

BatchableCommand<ChannelTrait.ChangeChannelCommand.Response>

The batchable version of changeChannel command.

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

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

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

The batchable version of changeChannelByNumber command.

suspend ChannelTrait.GetProgramGuideCommand.Response
BatchableCommand<ChannelTrait.GetProgramGuideCommand.Response>
suspend Unit
recordProgram(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
)
BatchableCommand<Unit>
recordProgramBatchable(
    programIdentifier: String,
    shouldRecordSeries: Boolean,
    externalIdList: List<ChannelTrait.AdditionalInfoStruct>,
    data: ByteArray
)
suspend Unit

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

BatchableCommand<Unit>

The batchable version of skipChannel command.

Public functions

cancelRecordProgram

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

cancelRecordProgramBatchable

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

changeChannel

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

Change the channel to the specified channel.

Parameters
match: String

A string used to identify the intended channel, which may be a call sign, a name, or a number.

Returns
ChannelTrait.ChangeChannelCommand.Response

The status of the ChangeChannel command.

changeChannelBatchable

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

The batchable version of changeChannel command.

Change the channel to the specified channel.

Parameters
match: String

A string used to identify the intended channel, which may be a call sign, a name, or a number.

changeChannelByNumber

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

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

Parameters
majorNumber: UShort

The channel major number value to which the channel should change, in ATSC format.

minorNumber: UShort

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 changeChannelByNumber command.

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

Parameters
majorNumber: UShort

The channel major number value to which the channel should change, in ATSC format.

minorNumber: UShort

The channel minor number value to which the channel should change, in ATSC format.

Returns
BatchableCommand<Unit>

BatchableCommand

recordProgram

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

recordProgramBatchable

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

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: Short

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 skipChannel 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: Short

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
BatchableCommand<Unit>

BatchableCommand