Native Services with Xamarin.Forms? It's DependencyService to the Rescue
Posted by: Wallace B. McClure,
on 17 Sep 2015 |
View original | Bookmarked: 0 time(s)
As you know, Xamarin.Forms is a great mechanism to create cross-platform applications that run natively on iOS, Android and Windows Phone. Xamarin.Forms provides a great set of services that run the same across all OSes, however, there are times when it's necessary to make calls that are platform-specific. That's what DependencyService is for.
I'll show an example by performing reverse geocoding on each platform. For each platform, there will be a reverse geocode call made to the platform-specific...