Sometimes you need to use platform specific code in Xamarin Forms. To do this you can use DependencyService. In this example i want to show how you can call an Android specific mail intent.

1) Create an interface in your project folder

2) Create a class in your Droid Folder that implements the interface

Don’t forget the assembly annotation

3) Use DependencyService

Now you can use the DependencyService in your shared code to call the native function