DEV Community

Matt Hope
Matt Hope

Posted on

1

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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay