DependencyService
Accessing native functionality
- PDF for offline use
- Sample Code:
- Related Samples:
Let us know how you feel about this
Translation Quality
0/250
last updated: 2017-03
Xamarin.Forms allows developers to define behavior in platform-specific projects. DependencyService then finds the right platform implementation, allowing shared code to access the native functionality.
This guide is composed of the following articles:
- Introduction – introduces the overall architecture of the
DependencyServiceconcept. - Implementing Text-to-Speech – walks through an example of using each platform's native text-to-speech system.
- Checking Device Orientation – walks through an example of using native platform APIs to determine the device's orientation.
- Getting Battery Information – walks through an example of using native APIs to get information on the battery's status.
- Picking a Photo from the Library – walks through an example of using native APIs to pick a photo from the phone's picture library.
Let us know how you feel about this
Translation Quality
0/250
Xamarin Workbook
If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.

