Robert Jaros
12/15/2022, 8:43 AMCasey Brooks
12/15/2022, 2:17 PMRoutingTable
that handles the more dynamic matching logic. Here’s the implementation for enums to show that it’s a pretty trivial to make a custom RoutingTable, and matching is always done dynamically at the time that navigation is requested, so you can provide any kind of dynamic logic you need within your custom RoutingTable class.
Just changing the RoutingTable within a Router isn’t supported right now though, mostly because I haven’t thought through the semantic meaning of that yet. How should changing the RoutingTable impact the Backstack, for example? And I couldn’t think of any scenarios where one would need to replace the RoutingTable at runtime, but I would definitely like to know if you’ve got a scenario in mind.Robert Jaros
12/15/2022, 2:49 PMCasey Brooks
12/15/2022, 3:02 PMInputHandler
(here’s the original you can copy as the base) and an Input that will update the property. As you noted in the original question, it is ultimately just a property of the Router ViewModel’s State, and can be swapped out from within the custom InputHandler