Skip to Content
Mastering Xamarin.Forms - Third Edition
book

Mastering Xamarin.Forms - Third Edition

by Ed Snider
December 2019
Intermediate to advanced content levelIntermediate to advanced
200 pages
3h 54m
English
Packt Publishing
Content preview from Mastering Xamarin.Forms - Third Edition

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Xamarin.Forms - Second Edition

Mastering Xamarin.Forms - Second Edition

Ed Snider
Xamarin.Forms Projects - Second Edition

Xamarin.Forms Projects - Second Edition

Daniel Hindrikes, Johan Karlsson
Xamarin.Forms Projects

Xamarin.Forms Projects

Johan Karlsson, Daniel Hindrikes
Xamarin 4 By Example

Xamarin 4 By Example

Matteo Bortolu, Engin Polat, Mark Radacz

Publisher Resources

ISBN: 9781839213380Supplemental Content