MediaInput

interface MediaInput : MediaInputTrait.Attributes, MatterTrait, MediaInputCommands


API for the MediaInput trait. This trait provides an interface for controlling the input selector on a media device such as a video player.

Summary

Nested types

Descriptor enum for this trait's attributes.

Descriptor enum for this trait's commands.

Public functions

Boolean
Boolean

Public properties

open TraitFactory<MediaInput>

Inherited functions

From com.google.home.matter.standard.MediaInputCommands
suspend Unit

Hide the input list on the display.

suspend Unit
renameInput(index: UByte, name: String)

Change the name of the specified input.

suspend Unit

Change the media input on the device.

suspend Unit

Show the input list on the display.

From com.google.home.TraitStateInvalidation
suspend Unit

Inherited properties

From com.google.home.matter.standard.MediaInputTrait.Attributes
List<UInt>

A list of client-generated commands which are supported by this cluster server instance.

List<UInt>

A list of the attribute IDs of the attributes supported by the cluster instance.

UShort

The revision of the server cluster specification supported by the cluster instance.

UByte?

The index of the currently selected input.

MediaInputTrait.Feature

Whether the server supports zero or more optional cluster features.

List<UInt>

A list of server-generated commands (server to client) which are supported by this cluster server instance.

List<MediaInputTrait.InputInfoStruct>?

A list of media inputs supported by the device.

From com.google.home.Trait

Public functions

supports

fun supports(attribute: MediaInput.Attribute): Boolean

supports

fun supports(command: MediaInput.Command): Boolean

Public properties

factory

open val factoryTraitFactory<MediaInput>