# SwitchTrait.LongRelease

# SwitchTrait.LongRelease


```
interface SwitchTrait.LongRelease : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/Switch.LongReleaseEvent` |   |

*** ** * ** ***

Indicates that the momentary switch has been released after a `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/SwitchTrait.LongPress` and after debouncing.

## Summary

| ### 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/SwitchTrait.LongRelease#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/SwitchTrait.LongRelease#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-byte/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/SwitchTrait.LongRelease#previousPosition()` The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/SwitchTrait.Attributes#currentPosition()` attribute just prior to the release. |

## 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

### previousPosition

```
val previousPosition: UByte?
```

The value of the `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/SwitchTrait.Attributes#currentPosition()` attribute just prior to the release.