Accessing Native Features with DependencyService
- PDF for offline use:
- Sample Code:
- Related Samples:
Let us know how you feel about this.
0/250
last updated: 2016-01
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.
Let us know how you feel about this.
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.