This is a minimal MonoTouch binding for the ZBar iPhone SDK. It wraps the required types to show the ZBarReaderViewController, get the ZBarSymbolSet results, enumerate the contained ZBarSymbols, and access the various properties of the ZBarSymbol. It doesn't expose the ZBarImageScanner (yet).
A few notes/issues - let me know if you want me to address some of them:
- I've just zipped up the source files, I didn't want to make assumptions about where you would like to place this in the project tree.
- It's currently built via a MonoDevelop 'MonoTouch Binding Library' project. It could be replaced with a makefile...???
- It requires the compiled libzbar.a library in the same directory to build (MonoTouch now embeds the native library within the Mono dll along with required build flags - this allows user's to simply reference the Mono dll without having to worry about the native library dependencies and compiler flags)
- Should I also include the built ZBar.dll so others can just download it and run?
Basically, I'm not 100% sure on the best way to sort these issues out, but thought this would be useful to others so just wanted to get it out there somewhere. I've spent way too long already on this and need to move on to other things, so sorry this isn't as polished as it could be. But let me know if you want me to submit anything else and I'll squeeze it in.
Log in to post a comment.