Skip to content

Instantly share code, notes, and snippets.

@tevjef
Last active June 1, 2018 20:57
Show Gist options
  • Save tevjef/886d7ba2eb18839194b6e20308e2194f to your computer and use it in GitHub Desktop.
Save tevjef/886d7ba2eb18839194b6e20308e2194f to your computer and use it in GitHub Desktop.
@Navigator.Name("controller")
class ControllerNavigator(private val router: Router) : Navigator<Destination>() {
override fun createDestination() = Destination(this)
override fun popBackStack() = false /* Not yet implemented */
override fun navigate(destination: Destination, args: Bundle?, navOptions: NavOptions?) {
/* Not yet implemented */
}
class Destination(navigator: ControllerNavigator) : NavDestination(navigator) {
/* Not yet implemented */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment