Appendix B - API Walk Through
MagTek Universal SDK| For MMS Devices | Programmer’s Manual ( Java )
Page 50
B.3
IDeviceControl Walk Through
The following walks through how to make use of
IDevice
IDeviceControl.
IDeviceControl
open().
IDeviceControl
other functions.
IDeviceControl
close().
Example
// Establish a device from CoreAPI.
List<IDevice> deviceList = CoreAPI.getDeviceList();
IDevice device = deviceList.get(0);
// Establish a deviceControl from device.
IDeviceControl deviceControl = device.getDeviceControl();
// Open the device, then use the IDeviceControl functions.
deviceControl.open();
. . .
// Close the device.
deviceControl.close();