Download Print this page

Is There A Connected Scanner; Get The List Of Scanners; No Device Connected Item; Ide Integration - Socket ScanAPI Reference Manual

Advertisement

Socket ScanAPI Reference
public void
}

5.8 Is there a connected Scanner

At any point of time, the application can interrogate ScanApi Helper to know if there
is at least one device connected by using the following method:
This might be useful to know what application menu should be displayed by
example, which could change in function of the connection status.

5.9 Get the list of scanners

The list of connected scanner reference can be retrieved by using the getDevicesList
method.

5.10 No Device Connected item

In some occasion the application might want to display a specific text when no
device is connected. The ScanAPI Helper method setNoDeviceText() allows the
application to specify a text that will be used to display the only item of the devices
list when no scanner is connected.

6 IDE Integration

6.1 C/C++ Version

ScanAPI has been compiled with Microsoft Visual Studio 2008. The inclusion of
ScanAPI in this environment in your C/C++ project can be done in 2 ways; by adding
the following lines in your source file directly:
#include "<SDK Install Path>\include\ScanAPI.h"
#pragma comment("lib","<SDK Install Path>\\lib\ScanAPI.lib"
Or by adding only the include line in your source file and by adding the lib file in
your Project Link input settings.

6.2 Java Version

ScanAPI has been compiled using Eclipse Galileo (version 3.5).
© 2013 Socket Mobile, Inc.
onDeviceRemoval(DeviceInfo deviceRemoved) {
synchronized(UiApplication.getEventLock()){
deviceRemoved.CloseScreenButThis(_this);
int
size=_scanApiHelper.getDevicesList().size();
_displayDeviceslist.setSize(size);
}
_deviceconnected=false;
_scanApiHelper.isDeviceConnected();
34/152

Advertisement

loading
Need help?

Need help?

Do you have a question about the ScanAPI and is the answer not in the manual?