# NavigationEventDispatcherOwner

Artifact: [androidx.navigationevent:navigationevent](https://developer.android.com/jetpack/androidx/releases/navigationevent) [View Source](https://cs.android.com/search?q=file:androidx/navigationevent/NavigationEventDispatcherOwner.kt+class:androidx.navigationevent.NavigationEventDispatcherOwner) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigationevent#1.0.0)

*** ** * ** ***

Common/AllAndroid/JVMJavaScript
- Cmn

  ```
  interface NavigationEventDispatcherOwner
  ```
Known direct subclasses [ComponentActivity](https://developer.android.com/reference/kotlin/androidx/activity/ComponentActivity), [ComponentDialog](https://developer.android.com/reference/kotlin/androidx/activity/ComponentDialog), [TestNavigationEventDispatcherOwner](https://developer.android.com/reference/kotlin/androidx/navigationevent/testing/TestNavigationEventDispatcherOwner)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/activity/ComponentActivity` | Base class for activities that enables composition of higher level components. |
| `https://developer.android.com/reference/kotlin/androidx/activity/ComponentDialog` | Base class for dialogs that enables composition of higher level components. |
| `https://developer.android.com/reference/kotlin/androidx/navigationevent/testing/TestNavigationEventDispatcherOwner` | A test implementation of `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcherOwner` for verifying `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` interactions. |

Known indirect subclasses [AlertDialog](https://developer.android.com/reference/kotlin/androidx/appcompat/app/AlertDialog), [AppCompatActivity](https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatActivity), [AppCompatDialog](https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatDialog), [BaseCarAppActivity](https://developer.android.com/reference/kotlin/androidx/car/app/activity/BaseCarAppActivity), [CarAppActivity](https://developer.android.com/reference/kotlin/androidx/car/app/activity/CarAppActivity), [FragmentActivity](https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentActivity), [LauncherActivity](https://developer.android.com/reference/kotlin/androidx/car/app/activity/LauncherActivity), [MediaRouteChooserDialog](https://developer.android.com/reference/kotlin/androidx/mediarouter/app/MediaRouteChooserDialog), [MediaRouteControllerDialog](https://developer.android.com/reference/kotlin/androidx/mediarouter/app/MediaRouteControllerDialog), [PreviewActivity](https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/PreviewActivity)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AlertDialog` | A subclass of Dialog that can display one, two or three buttons. |
| `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatActivity` | Base class for activities that wish to use some of the newer platform features on older Android devices. |
| `https://developer.android.com/reference/kotlin/androidx/appcompat/app/AppCompatDialog` | Base class for AppCompat themed `https://developer.android.com/reference/android/app/Dialog.html`s. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/activity/BaseCarAppActivity` | Core logic for CarAppLibrary Activity interaction with a host. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/activity/CarAppActivity` | The class representing a car app activity in the main display. |
| `https://developer.android.com/reference/kotlin/androidx/fragment/app/FragmentActivity` | Base class for activities that want to use the support-based `https://developer.android.com/reference/kotlin/androidx/fragment/app/Fragment`. |
| `https://developer.android.com/reference/kotlin/androidx/car/app/activity/LauncherActivity` | This class handles providing the right launcher activity when running native applications and Car App Library applications. |
| `https://developer.android.com/reference/kotlin/androidx/mediarouter/app/MediaRouteChooserDialog` | This class implements the route chooser dialog for `https://developer.android.com/reference/kotlin/androidx/mediarouter/media/MediaRouter`. |
| `https://developer.android.com/reference/kotlin/androidx/mediarouter/app/MediaRouteControllerDialog` | This class implements the route controller dialog for `https://developer.android.com/reference/kotlin/androidx/mediarouter/media/MediaRouter`. |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/tooling/PreviewActivity` | Activity used to run `@Composable` previews from Android Studio. |

*** ** * ** ***

A class that has an `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` that allows you to register a `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventHandler` for handling navigation events.

It is expected that classes that implement this interface route navigation events to the dispatcher.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` |   |

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` | `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcherOwner#navigationEventDispatcher()` The `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` that should handle the navigation events. | Cmn |

## Public properties

### navigationEventDispatcher

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

```
val navigationEventDispatcher: NavigationEventDispatcher
```

The `https://developer.android.com/reference/kotlin/androidx/navigationevent/NavigationEventDispatcher` that should handle the navigation events.