How to set the aimType Presentation mode using EMDKManager?

// Expert user has replied.
H Hugo Oliveira 1 month 2 weeks ago
44 1 0

Hi guys, 

I'm working on an app on a ET40 device, using EMDKManager. The app is working fine, but my scanner is activating during a lot of time, which decreases the tablet battery life. 

My goal is to integrate the presentation mode, to activate my scanner only if he detects some movement. Can someone provide any code to add to the scanner config or something to add this feature? I don't find much info about this on the documentation. 

Also I noticed something, everytime I try to access this methods I receive a exception with not relevant information on it: 

config?.readerParams?.readerSpecific?.laserSpecific?.aimType = ScannerConfig.AimType.PRESENTATION
config?.readerParams?.readerSpecific?.imagerSpecific?.aimType = ScannerConfig.AimType.PRESENTATION
config?.readerParams?.readerSpecific?.cameraSpecific?.aimType = ScannerConfig.AimType.PRESENTATION

Thanks in advance!

Please Register or Login to post a reply

1 Replies

C Charitha Mallawaarachchi

Hi Hugo,

Seems what you are trying to do is correct. Below is a code snippet which shows how to do it. But the feature availability may depend on many things. Could you please share more information below:

BSP version of the device OS

If you are tring to use Imager or Camera for scanning

Are you using EMDK for Android or Xamarin/MAUI?

What is the exact exception you are recieving?

ScannerConfig config = scanner.getConfig();
config.readerParams.readerSpecific.imagerSpecific.aimType = AimType.PRESENTATION;
scanner.setConfig(config);

CONTACT
Can’t find what you’re looking for?