title: How the Android Compose View notifies the ViewModel about happened navigation - trying to understand code example?
body: <p>I am trying to do Android Compose navigation initiated by the ViewModel. This example description <a href="https://medium.com/@ffvanderlaan/navigation-in-jetpack-compose-using-viewmodel-state-3b2517c24dde" rel="nofollow noreferrer">https://medium.com/@ffvanderlaan/navigation-in-jetpack-compose-using-viewmodel-state-3b2517c24dde</a> and project <a href="https://github.com/Frank1234/ViewModelNavigationCompose" rel="nofollow noreferrer">https://github.com/Frank1234/ViewModelNavigationCompose</a> suggest to do navigation from the View but based on the state that is kept in the ViewModel.</p>
  <p>The description <a href="https://medium.com/@ffvanderlaan/navigation-in-jetpack-compose-using-viewmodel-state-3b2517c24dde" rel="nofollow noreferrer">https://medium.com/@ffvanderlaan/navigation-in-jetpack-compose-using-viewmodel-state-3b2517c24dde</a> contains activity diagram, that includes step 4 and step 5 in whose the View notifies the ViewModel that navigation has happened.</p>
  <p>My question is - how this step 4 (notificiation by View) is implemented in the example code <a href="https://github.com/Frank1234/ViewModelNavigationCompose" rel="nofollow noreferrer">https://github.com/Frank1234/ViewModelNavigationCompose</a>? I can not find this implementation. I.e. there is view <a href="https://github.com/Frank1234/ViewModelNavigationCompose/blob/master/app/src/main/java/nl/frank/vmnc/ui/content/ContentPage.kt" rel="nofollow noreferrer">https://github.com/Frank1234/ViewModelNavigationCompose/blob/master/app/src/main/java/nl/frank/vmnc/ui/content/ContentPage.kt</a> but I don't see any code in this View that could catch the navigation event and that could notify the ViewModel about it.</p>