Xamarin.iOS Pdf search - objective-c

We develop with Xamarin.iOS and are trying to search/highlight in a PDF.
There is an iOS class for searching, CGPDFScanner, but unfortunately no bindings are offered by Xamarin.
Is there a solution or we should forget about it?
We believe that there is a way to make bindings for existing iOS classes.
Or we could probably use an existing project, like PDFKitten, and make Xamarin bindings.
Any hints?

Xamarin offers way for creating binding library. If you have some working and tested solution available in Objective C, create Binding library in tamarin and use that. You can check detailed document of it from here
I have created binding library for one of my project where i had to integrate third party sdk which was only in objective C. I followed step given here and it worked.

Related

Binding Objective C Reference

I'm trying to use a binding library (an Objective-C library) in my Xamarin Project. I followed all the instructions in the documentation.
When I try to use it I can't find it in the edit References/Projects. What do I need to do so that it shows up?
If the projects are in the same solution, and both projects are of the same type (Xamarin.iOS vs classic) Then it will show up under projects and you can reference it. Try making sure both of the projects have Xamarin.iOS in the references.

xamarin get location at cross-platform

i want to get location (use gps) at xamarin.form - that is, in cross platform.
but i can't find. only platform-dependent (at android, at ios, etc.)
if you know, please share to me !
(i found xamarin.mobile - geolocation, but it is also platform-dependent T^T)
This is going to be device specific. Probably the best approach is to create an Interface in your portable class library and then implement the interface in your Android and iOS -specific projects. The PCL will connect to the implementation through the Xamarin Forms DependencyService. Please have a look at the following link Accessing Native Features via the DependencyService
It is likely that you will be able to use the other examples on the Xamarin site to write your platform-specific code. For example here is a link to the Android LocationService
Checkout Forms Labs. It should be pretty simple to reuse it even without Xamarin.Forms (if that's the case).

Mono + Xcode: How to author a library in C# using Xamarin Studio, and consume it in a CocoaTouch project within Xcode?

For an iOS app that will eventually be ported to Android/Winphone, I would love to be able to write some re-usable libraries in c#, but author the iOS UI in traditional Obj-C and reference the library written in c# from Xcode and consume it from Obj-C.
I've found lots of docs that talk about going the other way via bindings (Obj-C -> C#), but not much pertaining to my question. Also, a similar question was asked 4 years ago here, but a lot has changed in the ecosystem, the info seems out of date, and some of the links in the answers now redirect elsewhere:
Is there a way to mix MonoTouch and Objective-C?
So, is this possible? If so how, and what's the best way to achieve it today? (Or alternately, is this a bad idea and should be abandoned?)
No, it is not currently possible to consume a C# library from Objective-C.
Note that it is usually possible to do it the other way with some ingenuity - the only real requirement is that the app must be a Xamarin.iOS app and the entry point the managed Main method. In your Main method you can call into native (C/Objective-C) code and have all your logic there.

Binding objective-c library to Xamarin Project using Objective Sharpie

I am developing an iOS application using Xamarin Studio. The application is going to work with Infinite Peripherals Linea Pro 5 (a barcode scanner that you attache to an iPod/iPhone).
The Linea SDK provided by Infinite Peripherals is an objective-c library with an associated header file. I've followed Xamarins iOS binding tutorial, skipping the first parts and starting at chapter "3.2. Create a Xamarin.iOS Binding Project" (since I already have the fat binary file).
I have installed Objective Sharpie v0.4.11 and the Xcode Command Line Tools.
When I try to create the binding using Objective Sharpie I get the following error message:
After some research I find that this probably is a bug caused by Objective Sharpie, but is there any way around this bug? I really need to get this library in to my MonoTouch project.
P.S.
I have also checked out the tutorial by David Sandor, but it is really outdated and I do not possess enough knowledge to update it.
If Objective-Sharpie doesn't work for your project, you can:
Do a manual binding, or build upon David Sandor's one. That's not that hard.
Try to find the offending part of the header file, by removing part of it and process it with Obj-Sharpie (the header file is not that long, once you strip the comments away)

Objective C binding on MonoTouch

Hi i'm currently developing a monotouch app, where i need to use the IDBlue framework for connecting from the ipad to their blueetooth reader, but is shipped as a framework without a .a, how i should proceed to make the binding so i can use it on monotouch?
The easiest way is to create a Bindings project in your solution.
This document describes the whole process.
Also there is a tool (Parser.exe) to help generate bindings. Surprisingly this tool is not mentioned in the "Binding Objective-C Types" document. It is not a complete solution but will give you a good start.