DEV Community

Matt Hope
Matt Hope

Posted on

Do you want xamarin navigation middleware?

Would being able to register middleware for various flows of Xamarin be useful for anyone?

Over the last few days I have been integrating navigation middleware into my own xamarin net core host builder. Essentially I have generated a proxy around INavigation and intercept every call. In doing this it allows you to register middleware for any of the Navigation flows (e.g. Push(), Pop(), PushModal(), etc...) much like Asp.Net does on every request.

Implementation looks something like this:

new XamarinHostBuilder()
.UseNavigationMiddleware<SomeMiddleware>();
Enter fullscreen mode Exit fullscreen mode

But im curious to hear if anyone else thinks this is a good idea? or any suggestions on features i could include?

Top comments (0)