# TargetNavigator


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface TargetNavigator : TargetNavigatorTrait.Attributes, MatterTrait, TargetNavigatorCommands
```

<br />

*** ** * ** ***

API for the TargetNavigator trait. This trait provides an interface for UX navigation within a set of targets on a device or endpoint.

## Summary

| ### Nested types |
|---|
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.Attribute : 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 trait's attributes. |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.Command : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html` Descriptor enum for this trait's commands. |
| `class https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.TargetUpdatedEvent : https://developers.home.google.com/reference/kotlin/com/google/home/Event, https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.TargetUpdated` |
| `enum https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.TargetUpdatedEvent.EventFields : 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 event's fields. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator#supports(com.google.home.matter.standard.TargetNavigator.Attribute)(attribute: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.Attribute)` |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator#supports(com.google.home.matter.standard.TargetNavigator.Command)(command: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator.Command)` |

| ### Public properties |
|---|---|
| `open https://developers.home.google.com/reference/kotlin/com/google/home/TraitFactory<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigator#factory()` |

### Inherited functions

From [com.google.home.matter.standard.TargetNavigatorCommands](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorCommands) `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.Response` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorCommands#navigateTarget(kotlin.UByte,kotlin.Function1)(target: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`

Navigate the UX to the identified target.
`https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.Response>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorCommands#navigateTargetBatchable(kotlin.UByte,kotlin.Function1)(target: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorCommands#navigateTarget(kotlin.UByte,kotlin.Function1)` command.
From [com.google.home.matter.standard.TargetNavigatorTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes) `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.Attributes#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.Attributes#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.
From [com.google.home.TraitStateInvalidation](https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation) `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/TraitStateInvalidation#forceRead()()`

### Inherited properties

From [com.google.home.matter.standard.TargetNavigatorTrait.Attributes](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes) `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#acceptedCommandList()`

A list of client-generated commands which are supported by this cluster server instance.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#attributeList()`

A list of the attribute IDs of the attributes supported by the cluster instance.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-short/index.html` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#clusterRevision()`

The revision of the server cluster specification supported by the cluster instance.
`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.Attributes#currentTarget()`

The identifier for the target currently in the foreground on the corresponding endpoint.
`https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Feature` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#featureMap()`

Whether the server supports zero or more optional cluster features.
`https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-int/index.html>` `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.Attributes#generatedCommandList()`

A list of server-generated commands (server to client) which are supported by this cluster server instance.
`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.Attributes#targetList()`

A list of unique navigable targets within the UX of an endpoint, such as a video player or content app.
From [com.google.home.Trait](https://developers.home.google.com/reference/kotlin/com/google/home/Trait) `https://developers.home.google.com/reference/kotlin/com/google/home/Trait.TraitMetadata` `https://developers.home.google.com/reference/kotlin/com/google/home/Trait#metadata()`

## Public functions

### supports

```
fun supports(attribute: TargetNavigator.Attribute): Boolean
```

### supports

```
fun supports(command: TargetNavigator.Command): Boolean
```

## Public properties

### factory

```
open val factory: TraitFactory<TargetNavigator>
```