# TargetNavigatorCommands

# TargetNavigatorCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface TargetNavigatorCommands
```

<br />

Known direct subclasses [TargetNavigator](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` | API for the TargetNavigator trait. |

*** ** * ** ***

Commands for the TargetNavigator trait.

## Summary

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

## Public functions

### navigateTarget

```
suspend fun navigateTarget(target: UByte, optionalArgs: TargetNavigatorTrait.NavigateTargetCommand.OptionalArgs.() -> Unit = {}): TargetNavigatorTrait.NavigateTargetCommand.Response
```

Navigate the UX to the identified target.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | The identifier for the navigation target. |
| `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 = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorTrait.NavigateTargetCommand.Response` | The result of the completed `NavigateTarget` command. |

### navigateTargetBatchable

```
fun navigateTargetBatchable(target: UByte, optionalArgs: TargetNavigatorTrait.NavigateTargetCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<TargetNavigatorTrait.NavigateTargetCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/TargetNavigatorCommands#navigateTarget(kotlin.UByte,kotlin.Function1)` command.

Navigate the UX to the identified target.

| Parameters |
|---|---|
| `target: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-u-byte/index.html` | The identifier for the navigation target. |
| `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 = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `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>` | BatchableCommand |