# CameraAvStreamManagementTrait.VideoSensorParamsStruct

# CameraAvStreamManagementTrait.VideoSensorParamsStruct


```
class CameraAvStreamManagementTrait.VideoSensorParamsStruct : ClusterStruct
```

<br />

*** ** * ** ***

Defines parameters related to the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.Attributes#videoSensorParams()` attribute.

## Summary

| ### Nested types |
|---|
| `@https://developers.home.google.com/reference/kotlin/com/google/home/annotation/HomeExperimentalGenericApi enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct.StructFields : 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 struct's fields. |

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct#VideoSensorParamsStruct(kotlin.UShort,kotlin.UShort,kotlin.UShort,com.google.home.matter.serialization.OptionalValue)( sensorWidth: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, sensorHeight: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, maxFps: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html, maxHdrfps: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html> )` Creates the VideoSensorParamsStruct class. |

| ### Public functions |
|---|---|
| `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/CameraAvStreamManagementTrait.VideoSensorParamsStruct#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/CameraAvStreamManagementTrait.VideoSensorParamsStruct#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. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct#maxFps()` The maximum frames per second that the video sensor can capture. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct#maxHdrfps()` An optional field for the maximum frames per second that the video sensor can capture when High Dynamic Range (HDR) is enabled. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct#sensorHeight()` The height that the video sensor supports. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/CameraAvStreamManagementTrait.VideoSensorParamsStruct#sensorWidth()` The width that the video sensor supports. |

## Public constructors

### VideoSensorParamsStruct

```
VideoSensorParamsStruct(
    sensorWidth: UShort,
    sensorHeight: UShort,
    maxFps: UShort,
    maxHdrfps: OptionalValue<UShort> = OptionalValue.absent()
)
```

Creates the VideoSensorParamsStruct class.

## Public functions

### getDescriptor

```
@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor
```

Returns the descriptor for the struct.

### getFieldValueById

```
@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?
```

Returns the value of the field for the given tag ID.

## Public properties

### maxFps

```
val maxFps: UShort
```

The maximum frames per second that the video sensor can capture.

### maxHdrfps

```
val maxHdrfps: OptionalValue<UShort>
```

An optional field for the maximum frames per second that the video sensor can capture when High Dynamic Range (HDR) is enabled.

### sensorHeight

```
val sensorHeight: UShort
```

The height that the video sensor supports.

### sensorWidth

```
val sensorWidth: UShort
```

The width that the video sensor supports.