When using DependencyService you typically need 3 parts:
DependencyService through a metadata attribute. This enables the DependencyService to find your implementation at run time.When using DependencyService you are required to provide an implementation for each platform you target. When an implementation is not provided the application will fail at run time.