Capture navigation events #1588
-
I have a project where I'm using external navigation controls (basically a rotary encoder that you twist and click to navigate the controls on the screen). With that I need to interact on a global app-level with the current view model (the list of controls that I can navigate between is controlled, including the order of which it should be navigated in). For it to be efficient it would be nice to be able to hook into the navigation requests so I can tell when the user navigates between pages. The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
You're right, the IRouteUpdater is internal but the IRouteNotifier is public. You should be able to request the implementation of this interface and attach an event handler. I'm not sure I quite follow what you want to be able to do when you intercept the navigation event, so if you can provide more context we can either provide guidance or expose different aspects of navigation if needed |
Beta Was this translation helpful? Give feedback.
You're right, the IRouteUpdater is internal but the IRouteNotifier is public. You should be able to request the implementation of this interface and attach an event handler.
I'm not sure I quite follow what you want to be able to do when you intercept the navigation event, so if you can provide more context we can either provide guidance or expose different aspects of navigation if needed