2

I want to bind an Objective-C++ library in Xamarin. Is this possible? If so, how do I need to declare the namespace those methods are in and what do I put in the Export tags?

vrwim
  • 13,020
  • 13
  • 63
  • 118
  • Possible duplicate of [Linking to a C++ native library in MonoTouch](http://stackoverflow.com/questions/5245616/linking-to-a-c-native-library-in-monotouch) – Prashant Cholachagudda Nov 30 '16 at 13:59

1 Answers1

2

We have a very detailed documentation on Objective-C subject here: https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/

You can refer this answer for the Obj-C++ bindings

https://stackoverflow.com/a/5249007/85606

Community
  • 1
  • 1
Prashant Cholachagudda
  • 13,012
  • 23
  • 97
  • 162
  • So I need to make an Objective-C wrapper for the library, where I simply forward the methods to Objective-C++? And then bind that? – vrwim Nov 30 '16 at 14:09
  • I did provide a wrapper, but I wrapped it so that I had a `UIViewController` that I can subclass in Xamarin code and simply override a few variables. It does not include all functionality the library provides, only the functionality I needed right now. I can extend the wrapper when I need more of the library. – vrwim Jan 11 '17 at 13:44