mgrazianodecastro
04/11/2023, 7:29 PM---> A (with public children x)
Main --/
\---> B
and I need to pass the callback access to children x. What's I've tried is to create it inside the A module, like so:
fun NavController.navigateToX(arg: String){
val destination = this@ScreenX.route + "/" + arg
navigate(destination)
}
but when I access it through Main into the B module, it doesn't find the route. Should I append more things at the beginning?NAV_GRAPH_ROUTE + / + ...
to see if it works, but without successMatt Rea
04/11/2023, 10:02 PMfun NavGraphBuilder.featureA(navigateToX: (String) -> Unit)
mgrazianodecastro
04/11/2023, 11:07 PM