In the Xamarin SDK we have platform independent projects and platform specific projects implementing functions that must use platform-specific features.
We need a way to be able to reference platform specific implementation from shared code without a hard dependency, so that we can do a sort of "write once, run everywhere".
The idea is that shared projects host the interface definition of the service, while platform projects will host the concrete implementation .
When the feature will be ready, the user must be able to get the platform specific implementation with the following code:
```java MobileCore.GetInstance<IMyServiceInterface>(); ``` |
|