Forum Cross Platform with Xamarin

PCL: Calling Native Class without dependency service


this is a newbie question. I'd like to roll in the source code of ModernHttpClient into my Android/iOS/PCL project. I know it is easier to just install the package but I have my reasons for doing it this way.

The HttpClient with NativeMessageHandler should be called from the PCL code. Currently this only calls the NativeMessage handler in the Facades.cs in my PCL project. One way to call the native code I've had experience with in the past is a Dependency Service - however, the ModernHttpClient is not using that.

Can someone gives me an idea how the NativeMessage handler class in my PCL project can use the native implementation?


Sign In or Register to comment.