Do you want xamarin navigation middleware?

atleastitry

Matt Hope

Posted on June 2, 2020

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?

💖 💪 🙅 🚩
atleastitry
Matt Hope

Posted on June 2, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related