Abdullah Musa
10/19/2024, 6:37 AMAbdullah Musa
10/19/2024, 6:43 AMnavigation<GameGraph>(Game1) {
composable<Game1> {...}
composable<Game2> {...}
composable<Game3> {...}
}
Abdullah Musa
10/19/2024, 6:45 AMjuhaodong
10/19/2024, 8:18 AMAbdullah Musa
10/19/2024, 8:54 AMStylianos Gakis
10/19/2024, 8:54 AMAbdullah Musa
10/19/2024, 8:57 AMStylianos Gakis
10/19/2024, 8:58 AMnavController.navigate(SomeGraphDestination(argsHere))
it shouldn't be any differentAbdullah Musa
10/19/2024, 9:00 AMStylianos Gakis
10/19/2024, 9:01 AMval graphRoute = remember(navController, backStackEntry) {
navController.getBackStackEntry<GameGraph>().toRoute<GameGraph>()
navController.getBackStackEntry<GameGraph>().toRoute<GameGraph>()
}
I think something like that, I am on a computer right now.Stylianos Gakis
10/19/2024, 9:02 AMStylianos Gakis
10/19/2024, 9:04 AMAbdullah Musa
10/19/2024, 9:06 AMBut if you did that, how would you expect to get the right args in there?
The games each have a callback when saving results which the common viewmoel executes. And the passed argument would determine how to save it.
Stylianos Gakis
10/19/2024, 9:08 AMAbdullah Musa
10/19/2024, 9:08 AMJust shove the information in a DataStore and access that store from anywhere you need to in the app.
Yeah, this would've been my second attempt.
Stylianos Gakis
10/19/2024, 9:10 AMAbdullah Musa
10/19/2024, 9:12 AMStylianos Gakis
10/19/2024, 9:14 AMPablichjenkov
10/19/2024, 5:34 PMfun onSelectInitialDestination(arg): Destination
Or a setter like setInitialDestinationSelector(InitialDestinationSelectorInterface)
Stylianos Gakis
10/19/2024, 5:39 PMPablichjenkov
10/19/2024, 6:19 PMStylianos Gakis
10/19/2024, 6:26 PMPablichjenkov
10/19/2024, 7:00 PMStylianos Gakis
10/19/2024, 7:44 PMPablichjenkov
10/19/2024, 8:29 PM