Inject Static Libraries And Plugins In Xamarin (Prism.Forms)
Hussain Abbasi
Fractional CTO | AI Engineer | Developer | Streamer | Blogger | Speaker | Founder of intelliAbb
When using a container for dependency injection in your Xamarin.Forms app, you may find yourself trying to use a plugin or library that is static that you want to register with your container. Having statics in our code makes it hard to test and causes coupling. In this post, I will demonstrate using Prism.Forms how to inject a static plugin or library that may or may not expose an abstraction.