Using ImageKit to Scan

AllanChin.6924AllanChin.6924 USUniversity ✭✭✭

Does anybody know how to even start this? I implemented an IKDeviceBrowserView, no problem, and it does enumerate scanners. The first question I would have is what does "local" mean in DisplaysLocalScanners? I have a USB and a network scanner installed and setting DisplaysLocalScanners to true only enumerates the USB scanner. But more importantly, how do I get the SelectedDevice as documented here.

https://developer.apple.com/documentation/quartz/ikdevicebrowserview

The Xamarin documentation does not even list it as a method, https://developer.xamarin.com/api/type/MonoMac.ImageKit.IKDeviceBrowserView/.

And how do I get the SelectionDidChange event as documented here.

https://developer.apple.com/documentation/quartz/ikdevicebrowserviewdelegate

The Xamarin documentation does not even have it to override, https://developer.xamarin.com/api/type/MonoMac.ImageKit.IKDeviceBrowserViewDelegate/.

The C# Example here is pretty useless :/ .

https://developer.xamarin.com/api/constructor/MonoMac.ImageKit.IKDeviceBrowserViewDelegate.IKDeviceBrowserViewDelegate/p/MonoMac.Foundation.NSObjectFlag/

Any help here would be much appreciated.

Thanks

Posts

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    As you found here the relevant APIs are not bound currently, so the first step is for someone to bind it.

    I believe you've made a request via support for help/someone to do this, which will be handled via e-mail, but I'm going to answer this in general:

    If someone is interested in an API that is unbound, I would suggest the following steps:

    • Search https://github.com/xamarin/xamarin-macios/issues/ for a issue
    • File a new one if not found, else comment on the existing on with your use case. We prioritize bindings on our backlog based on customer demand.
    • If you have a support contact or other associated channel, raise your request via it as well.
    • If you want it to happen quickly and don't mind getting your hands dirty, we can help you work on it yourself. Xamarin.Mac is open source after all. Drop by https://gitter.im/xamarin/xamarin-macios and let us know you are interested. We'll help you get started and point you in the right direction.
Sign In or Register to comment.