Do you want xamarin navigation middleware?
Matt Hope
Posted on June 2, 2020
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>();
But im curious to hear if anyone else thinks this is a good idea? or any suggestions on features i could include?
💖 💪 🙅 🚩
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.