0
votes

Building a cross platform app that utilizes a native C library (using P/Invoke) to send commands to a remote server, how can it be architected to suit the MVVMCross framework?

Thanks!

1

1 Answers

0
votes

It's not clear which framework(s) you are using.

Assuming iOS, see how to use P/Invoke at http://docs.xamarin.com/guides/ios/advanced_topics/native_interop

After getting the P/Invoke to work, if you need to access this in PCL code, then you'll need to use some form of dependency injection technique - one such technique is plugins - https://speakerdeck.com/cirrious/plugins-in-mvvmcross