# TargetNavigatorTrait.TargetUpdated


```
interface TargetNavigatorTrait.TargetUpdated : ClusterStruct
```

<br />

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

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.TargetUpdatedEvent` |   |

*** ** * ** ***

Generated when there is a change in either the active target or the list of available targets or both.

## 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/TargetNavigatorTrait.TargetUpdated#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/TargetNavigatorTrait.TargetUpdated#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/TargetNavigatorTrait.TargetUpdated#currentTarget()` Indicates the updated target that is in the foreground. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetUpdated#data()` Contains optional app-specific data. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetInfoStruct>?` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetUpdated#targetList()` Indicates the updated target list if there is a change in the list of targets. |

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

### currentTarget

```
val currentTarget: UByte?
```

Indicates the updated target that is in the foreground.

### data

```
val data: ByteArray?
```

Contains optional app-specific data.

### targetList

```
val targetList: List<TargetNavigatorTrait.TargetInfoStruct>?
```

Indicates the updated target list if there is a change in the list of targets.