DependencyService class is a service locator that enables Xamarin.Forms applications to invoke native platform functionality from shared code.
Platform implementations must be registered with the
DependencyService, and then resolved from shared code to invoke them.
This article explains how to use the Xamarin.Forms
DependencyService class to pick a photo from the phone's picture library.