# PushAvStreamTransportTrait.TransportTriggerOptionsStruct

# PushAvStreamTransportTrait.TransportTriggerOptionsStruct


```
class PushAvStreamTransportTrait.TransportTriggerOptionsStruct : ClusterStruct
```

<br />

*** ** * ** ***

Settings related to triggering events.

## 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/PushAvStreamTransportTrait.TransportTriggerOptionsStruct.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/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#TransportTriggerOptionsStruct(com.google.home.matter.standard.PushAvStreamTransportTrait.TransportTriggerTypeEnum,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue,com.google.home.matter.serialization.OptionalValue)( triggerType: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerTypeEnum, motionZones: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportZoneOptionsStruct>?>, motionSensitivity: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?>, motionTimeControl: https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct>, maxPreRollLen: 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 TransportTriggerOptionsStruct 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/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#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/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#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://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/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#maxPreRollLen()` The maximum length of pre-roll content (video or audio) that can be included when a transport trigger occurs. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#motionSensitivity()` The sensitivity level for motion-triggered stream transport. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#motionTimeControl()` The time control for the motion-triggered stream transport. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/serialization/OptionalValue<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportZoneOptionsStruct>?>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#motionZones()` The motion zones to trigger the stream. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerTypeEnum` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/PushAvStreamTransportTrait.TransportTriggerOptionsStruct#triggerType()` The trigger type of the transport. |

## Public constructors

### TransportTriggerOptionsStruct

```
TransportTriggerOptionsStruct(
    triggerType: PushAvStreamTransportTrait.TransportTriggerTypeEnum = TransportTriggerTypeEnum.Command,
    motionZones: OptionalValue<List<PushAvStreamTransportTrait.TransportZoneOptionsStruct>?> = OptionalValue.absent(),
    motionSensitivity: OptionalValue<UByte?> = OptionalValue.absent(),
    motionTimeControl: OptionalValue<PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct> = OptionalValue.absent(),
    maxPreRollLen: OptionalValue<UShort> = OptionalValue.absent()
)
```

Creates the TransportTriggerOptionsStruct 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

### maxPreRollLen

```
val maxPreRollLen: OptionalValue<UShort>
```

The maximum length of pre-roll content (video or audio) that can be included when a transport trigger occurs.

### motionSensitivity

```
val motionSensitivity: OptionalValue<UByte?>
```

The sensitivity level for motion-triggered stream transport.

### motionTimeControl

```
val motionTimeControl: OptionalValue<PushAvStreamTransportTrait.TransportMotionTriggerTimeControlStruct>
```

The time control for the motion-triggered stream transport.

### motionZones

```
val motionZones: OptionalValue<List<PushAvStreamTransportTrait.TransportZoneOptionsStruct>?>
```

The motion zones to trigger the stream.

### triggerType

```
val triggerType: PushAvStreamTransportTrait.TransportTriggerTypeEnum
```

The trigger type of the transport.