Using IReadlistener in Maui

When creating a project in .net Maui, including the SDK and binding to interface IReadListener the compiler says it is missing out on Mono.Android and Java.Interop.

Does anyone know how to get this to work?

Hello @Robert_Van_Vliet,

Have you taken a look at our documentation?

I followed the setup steps we provide and was not able to recreate your error.
I was also able open and compile our sample app Decode Listener.

Let me know if this information was helpful.
If it did not help, can you provide more detailed steps as to how you got this error?

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer

Hi @Drew_Hugentobler ,

I have been working on the app and found a sample where the scan logic is placed in the mainactivity class of the android platform code:

My question came about when I tried to place the scan login in a content page of a maui application.

Maybe you can get it to work? For now I’m using the solution above.

Vriendelijke groet,

Hello @Robert_Van_Vliet,

The easiest method is to put code calling our SDK in the Android platform MainActivity, as the code is Android specific.

I believe it is possible to call this code elsewhere, but we do not provide samples or documentation detailing the process.

Drew Hugentobler
L3 Mobile Computer Specialist Support Engineer