# BackStackMatchResult

Artifact: [androidx.navigation3:navigation3-runtime](https://developer.android.com/jetpack/androidx/releases/navigation3) [View Source](https://cs.android.com/search?q=file:androidx/navigation3/runtime/deeplink/BackStackMatcher.kt+class:androidx.navigation3.runtime.deeplink.BackStackMatchResult) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.2.0) Common/AllAndroid/JVM
- Cmn

  ```
  class BackStackMatchResult<T : K, K : Any> : WrappedMatchResult<T>
  ```

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult) |||
|   | ↳ | [androidx.navigation3.runtime.deeplink.WrappedMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult)\<T\> ||
|   |   | ↳ | [androidx.navigation3.runtime.deeplink.BackStackMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult) |

*** ** * ** ***

Result returned when a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatcher` successfully matches a `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkRequest`.

Contains the original `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` and the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult#backStack()` constructed for the match.

`https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult` the type of the navigation key associated with this result, must be of type `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult`

`https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult` the element type of the back stack `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html`

## Summary

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<K>` | `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/BackStackMatchResult#backStack()` The back stack of navigation keys constructed for this match result. | Cmn |

### Inherited functions

From [androidx.navigation3.runtime.deeplink.WrappedMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult) `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)(other: https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>)`

Compares this `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult` to `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#compareTo(androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult)` and returns an Int result.
Cmn

### Inherited properties

From [androidx.navigation3.runtime.deeplink.DeepLinkMatcher.MatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult) `T` `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult#key()`

the navigation key representing the deep link target
Cmn From [androidx.navigation3.runtime.deeplink.WrappedMatchResult](https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult) `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult<T>` `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/WrappedMatchResult#matchResult()`

the `https://developer.android.com/reference/kotlin/androidx/navigation3/runtime/deeplink/DeepLinkMatcher.MatchResult` to wrap
Cmn

## Public properties

### backStack

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/navigation3#1.2.0)

```
val backStack: List<K>
```

The back stack of navigation keys constructed for this match result.

The back stack is evaluated on initial access and caches the result.