4
Platform-Specific Services and Dependency Injection
This chapter will not teach you everything there is to know about inversion of control (IoC) and dependency injection, as there are numerous resources available that strictly focus on these topics alone. Instead, this chapter will focus on how these patterns apply to mobile development and, more specifically, how to implement them in a Xamarin.Forms mobile app.
The following is a quick look at what we'll cover in this chapter:
- The need for dependency injection in multi-platform mobile app development
- Implementing IoC and dependency injection using a third-party library in place of Xamarin.Forms
DependencyService
- Creating, injecting, and using platform-specific services
- Updating our TripLog ...
Get Mastering Xamarin.Forms - Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.