Hi, I'm pretty sure that's not possible I'm afraid. The EMDK for Xamarin targets Android specifically so you couldn't add it to a PCL. Reading around there is a suggestion to use dependency injection to call platform specific code from your PCL (https://xamarinhelp.com/xamarin-forms-dependency-injection/ ) but you would still have to include the EMDK for Xamarin in the Android specific part of your application.
As Darryn wrote the EMDK needs to be included in the Adroid portion of your crossplatform project (like you've done for ZXing, I think).
We had a session on a similar topic at our developer conference last year:
This shows how to use the EMDK both in a Xamarin.Android application and in a Xamarin.Forms application.
My suggestion is to use the DataWedge Intents instead of integrating the EMDK's Barcode API.
This is much easier and the latest DataWedge Intent APIs is very powerful
Thank You! Darryn, that was exactly what I did, but some times the scanner stop working, and
I have to reset my TC70.
I try using the sample BarcodeManager, because I want to control my scan with a start/stop button.
I couldn't say what could be causing the scanner to stop working... maybe the read is being submitted at the wrong time but the best place to start to diagnose the issue would be to compare it with the official sample application, Barcode APIs - Zebra Technologies TechDocs and the session that Pietro shared.
I agree DataWedge does sound like a good idea in this case, you can control the scanner with a start / stop button, you need to send a SOFT_SCAN_TRIGGER extra, the documentation is here: Soft Scan Trigger - Zebra Technologies TechDocs . I also have a sample app showing how to receive DataWedge Intents in Xamarin here: GitHub - darryncampbell/DataWedge-Intent-Example-3